Skip to content
New issue

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

[Feat] db.execute: Detect that SQL statement is longer than DB_SQL_MAX #1126

Open
wenzeslaus opened this issue Nov 29, 2020 · 0 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@wenzeslaus
Copy link
Member

Is your feature request related to a problem? Please describe.
db.execute fails with a too generic message when DB_SQL_MAX is reached. This is extremely confusing when db.execute is used by another module and even when used directly, the message is unclear.

Describe the solution you'd like
Something like ERROR: The SQL statement is too long. Try to make it shorter or use different approach. should appear.

Describe alternatives you've considered
Implement dynamic allocation for SQL statements. That would be actually preferred since it would solve the issue with the message and with what DB_SQL_MAX should be.

Additional context

@wenzeslaus wenzeslaus added the enhancement New feature or request label Nov 29, 2020
@wenzeslaus wenzeslaus added this to the 8.4.0 milestone Feb 17, 2023
@wenzeslaus wenzeslaus modified the milestones: 8.4.0, Future Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant