Skip to content

Commit 36655b9

Browse files
committed
Optimize the deletion and addition of default primary keys
1 parent 5597b80 commit 36655b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syncanysql/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def compile_delete(self, expression, arguments):
212212
raise SyncanySqlCompileException('unknown where expression, related sql "%s"' % self.to_sql(expression))
213213
self.parse_condition_typing_filter(expression, config, arguments)
214214
config["output"] = "".join(["&.", table_info["db"], ".", table_info["name"], "::",
215-
"".join(table_info["primary_keys"]) if table_info.get("primary_keys") else "-", " use DI"])
215+
"".join(table_info["primary_keys"]) if table_info.get("primary_keys") else "id", " use DI"])
216216
return config
217217

218218
def compile_query(self, expression, arguments):

0 commit comments

Comments
 (0)