We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model:
class M(models.Model): id = models.IntegerField(primary_key=True)
v = M.objects.all() v.exists()
Generated SQL statement: SELECT FIRST 1 ? AS a FROM m PARAMS = (1,)
Returned error: [Informix][Informix ODBC Driver][Informix]A syntax error has occurred. (-201) (SQLPrepare)
This works fine in isql and dbaccess (without params).
Could anyone confirm this? Any ideas?
The text was updated successfully, but these errors were encountered:
Additional info: As far as I know, fieldnames cannot be a bound item and must be a literal. So the bad SQL statement should be
SELECT FIRST 1 1 AS a FROM m
Correct me if I'm wrong.
Sorry, something went wrong.
No branches or pull requests
Model:
class M(models.Model):
id = models.IntegerField(primary_key=True)
v = M.objects.all()
v.exists()
Generated SQL statement:
SELECT FIRST 1 ? AS a FROM m
PARAMS = (1,)
Returned error:
[Informix][Informix ODBC Driver][Informix]A syntax error has occurred. (-201) (SQLPrepare)
This works fine in isql and dbaccess (without params).
Could anyone confirm this? Any ideas?
The text was updated successfully, but these errors were encountered: