We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f30ac6 commit 1a7f07aCopy full SHA for 1a7f07a
clickhouse_backend/models/sql/compiler.py
@@ -201,7 +201,7 @@ def as_sql(self):
201
)
202
elif hasattr(val, "prepare_database_save"):
203
if field.remote_field:
204
- val = field.get_db_prep_save(
+ val = field.get_db_prep_value(
205
val.prepare_database_save(field),
206
connection=self.connection,
207
@@ -212,7 +212,8 @@ def as_sql(self):
212
% (field, val, field.__class__.__name__)
213
214
else:
215
- val = field.get_db_prep_save(val, connection=self.connection)
+ # update params are formatted into query string.
216
+ val = field.get_db_prep_value(val, connection=self.connection)
217
218
# Getting the placeholder for the field.
219
if hasattr(field, "get_placeholder"):
0 commit comments