mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-22 01:32:24 +00:00
Fixed https://github.com/hwchase17/langchain/issues/2020 Co-authored-by: qianjun.wqj <qianjun.wqj@alibaba-inc.com>
This commit is contained in:
@@ -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])
|
||||
|
Reference in New Issue
Block a user