This commit is contained in:
2026-07-15 14:25:04 +07:00
parent ad917ea8d0
commit 3acf46964b
+2 -1
View File
@@ -530,7 +530,8 @@ function generatesql(a::T, searchterm::String,
related_tables = a.context.find_related_tables_for_user_question(searchterm)
table_schema = ""
for table in related_tables
table_schema_df = GeneralUtils.get_db_table_schema(a.context.pg_conn_str, table)
_table_schema_df = GeneralUtils.get_db_table_schema(a.context.pg_conn_str, table)
table_schema_df = _table_schema_df[:, [:column_name, :data_type, :constraint_type]]
table_schema_str = sprint(show, table_schema_df) * "\n"
table_schema = table_schema * table_schema_str
end