-
Notifications
You must be signed in to change notification settings - Fork 35
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
CLIMutable
seems to be necessary for some records
#96
Comments
Hello, it seems that |
Documentation https://www.sqlite.org/datatype3.html recommends INT:
|
Hmm, seems that using BOOLEAN in schema definition works. Now So following works without type Person = { Name : string
Salary : string
Alive : bool }
let createScript = """
CREATE TABLE IF NOT EXISTS "Person" (
"Name" TEXT NOT NULL,
"Salary" TEXT NOT NULL,
"Alive" BOOLEAN NOT NULL,
PRIMARY KEY("Name")
);
""" |
Just wanted to jump in and say this also happens on MSSQL. In my case i'm using bool on the source table as well. I can provide more details if it helps, but they're very wide tables so it's hard to narrow down what's really causing the issue. Adding CLIMutable fixed it though. |
According to
README.md
and already closed issue #67 adding[<CLIMutable>]
to F# records isn't necessary.But when I run the following code without
[<CLIMutable>]
I get the following exception
Adding
[<CLIMutable>]
solves the problem. Also changing the recordPerson
tosolves the problem but that is not what I want because it defeats the point of adding type handlers. I'm using following libraries:
So my question is whether there's a mistake in my code or
[<CLIMutable>]
needs to be used with certain records?Maybe it has something to do with SQLite which doesn't have dedicated type for bool or for decimal?
The text was updated successfully, but these errors were encountered: