Update sphinx_make.py

This commit is contained in:
Mr Chen
2024-05-19 17:58:50 +08:00
parent a6d96bb4d8
commit 45b7abd0fb
+2 -2
View File
@@ -205,10 +205,10 @@ def makeSqlToSphinxDb(pdb, db, table = []):
conf = '' conf = ''
for t in table: for t in table:
pkey_name = getTablePk(pdb, db, table_name) pkey_name = getTablePk(pdb, db, t)
if pkey_name == '': if pkey_name == '':
continue continue
conf += makeSphinxDbSource(pdb, db, table_name, pkey_name) conf += makeSphinxDbSource(pdb, db, t, pkey_name)
if len(table) == 0: if len(table) == 0:
tables = pdb.query("show tables in "+ db) tables = pdb.query("show tables in "+ db)