From 2e75a565022b0c26a794366d1257495cca0a3d95 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 21 May 2024 23:26:15 +0800 Subject: [PATCH] Update sphinx_make.py --- plugins/sphinx/class/sphinx_make.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sphinx/class/sphinx_make.py b/plugins/sphinx/class/sphinx_make.py index fdaf60958..5ec3ea93a 100644 --- a/plugins/sphinx/class/sphinx_make.py +++ b/plugins/sphinx/class/sphinx_make.py @@ -207,7 +207,7 @@ searchd def makeSphinxDbSourceDeltaPost(self, db, table): pkey_name = self.getTablePk(db,table) - conf = "UPDATE {$SPH_TABLE} SET max_id=(SELECT MAX({$PK_NAME}) FROM {$TABLE_NAME} where='{$DB_NAME}') where `table`='{$TABLE_NAME}'" + conf = "UPDATE {$SPH_TABLE} SET max_id=(SELECT MAX({$PK_NAME}) FROM {$TABLE_NAME}) where `table`='{$TABLE_NAME}'" # conf = "REPLACE INTO {$SPH_TABLE} (`table`,`max_id`) VALUES ('{$TABLE_NAME}',(SELECT MAX({$PK_NAME}) FROM {$TABLE_NAME}))" conf = conf.replace("{$DB_NAME}", db) conf = conf.replace("{$TABLE_NAME}", table)