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

InDBMigrator - Sqlite Placeholder Correction #702

Merged
merged 1 commit into from
Oct 17, 2022
Merged

InDBMigrator - Sqlite Placeholder Correction #702

merged 1 commit into from
Oct 17, 2022

Conversation

macneiln
Copy link
Contributor

Correcting the placeholder value relating to the InDBMigrator logic for web2py_filesystem. The sqlite adapter uses a "?" as a placeholder, whereas mysql and postgresql use "%s" as the placeholder, so this needs to be dynamic depending on the database being used.

https://docs.python.org/3/library/sqlite3.html#how-to-use-placeholders-to-bind-values-in-sql-queries

Resolves #701

@mdipierro mdipierro merged commit 2903a8f into web2py:master Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect sqlite placeholder for InDBMigrator
2 participants