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

Support for NULL value #206

Open
tomasweigenast opened this issue Jan 22, 2024 · 1 comment
Open

Support for NULL value #206

tomasweigenast opened this issue Jan 22, 2024 · 1 comment

Comments

@tomasweigenast
Copy link

Currently there is no way to pass null as parameters in any method. I know I can specify in the query the NULL value as a raw string, but I need the ability to create generic insert method for example, an pass in a Map, if a value is null, it should be converted

@simolus3
Copy link
Owner

simolus3 commented Jan 22, 2024

Passing null parameters should work and is tested:

test('can bind null blob in prepared statements', () {
expect(insertBlob(null), isNull);
});

You can pass a List containing null to all methods accepting parameters. Could you provide more details about what isn't working for you?

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

2 participants