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

No check for bind parameter values #514

Open
conservative-dude opened this issue Oct 19, 2022 · 0 comments
Open

No check for bind parameter values #514

conservative-dude opened this issue Oct 19, 2022 · 0 comments

Comments

@conservative-dude
Copy link

Hi,

I'm using raw queries like that:

record = await db.fetch_one(
    query='select * from table_a where id = :id',
    values={
        # "id": 0
    })

If I don't provide bind parameter value (like that :id), bind parameter value is set to None and query executes successfully. I was expecting that an error will be thrown saying that I miss a value for the parameter.

Is there anything I'm missing?

databases[postgresql]==0.6.1
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

No branches or pull requests

1 participant