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

Binding value in SQLite #840

Open
Yari27 opened this issue Jul 17, 2024 · 1 comment
Open

Binding value in SQLite #840

Yari27 opened this issue Jul 17, 2024 · 1 comment
Assignees
Labels
enhancement 🚀 New feature or request SQLite 🪶

Comments

@Yari27
Copy link

Yari27 commented Jul 17, 2024

Is your feature request related to a problem? Please describe.
Can't run SQL query width binding values.

Describe the solution you'd like
Open dialog window to provide binding value.

Additional context
https://www.sqlite.org/c3ref/bind_blob.html
https://www.databasestar.com/sql-bind-variables/

@bart-schaefer
Copy link

For MySQL backend, it works to put 2 separate lines in the query editor:

set @id1 = 12345;
select * from table1 where idcolumn = @id1;

Have you tried this for SQLite?

It's true that the ? placeholder syntax does not work in Antares + MySQL. Since those represent ordinal positions, it would likely be necessary to count the unquoted ? and prompt in the dialog window for one value for each. Matching up corresponding data types might be an additional complication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🚀 New feature or request SQLite 🪶
Projects
Status: 📌 To do
Development

No branches or pull requests

3 participants