v1.8.59: fix @staticmethod bug in SQL/PHP format converters
_sql_val and _php_val were @staticmethod but called via self — caused "takes 1 positional argument but 2 were given" error. Converted to regular methods. All 16 formats tested OK. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -763,8 +763,7 @@ class QueryTab(ctk.CTkFrame):
|
||||
lines.append(f"UPDATE `{tbl}` SET {sets} WHERE {where};")
|
||||
return "\n".join(lines)
|
||||
|
||||
@staticmethod
|
||||
def _sql_val(v) -> str:
|
||||
def _sql_val(self, v) -> str:
|
||||
if v is None or str(v) == "NULL":
|
||||
return "NULL"
|
||||
s = str(v)
|
||||
@@ -805,8 +804,7 @@ class QueryTab(ctk.CTkFrame):
|
||||
lines.append("]")
|
||||
return "\n".join(lines)
|
||||
|
||||
@staticmethod
|
||||
def _php_val(v) -> str:
|
||||
def _php_val(self, v) -> str:
|
||||
if v is None or str(v) == "NULL":
|
||||
return "null"
|
||||
s = str(v)
|
||||
|
||||
Reference in New Issue
Block a user