forked from Archives/langchain
Fixed https://github.com/hwchase17/langchain/issues/2020 Co-authored-by: qianjun.wqj <qianjun.wqj@alibaba-inc.com>
This commit is contained in:
parent
d5825bd3e8
commit
e0331b55bb
@ -124,7 +124,7 @@ class SQLDatabase:
|
||||
|
||||
if self._sample_rows_in_table_info:
|
||||
# build the select command
|
||||
command = select(table).limit(self._sample_rows_in_table_info)
|
||||
command = select([table]).limit(self._sample_rows_in_table_info)
|
||||
|
||||
# save the columns in string format
|
||||
columns_str = "\t".join([col.name for col in table.columns])
|
||||
|
Loading…
Reference in New Issue
Block a user