-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use of Nil in numeric context in DB::SQLite::Statement line 44 #8
Comments
I've played around with this a bit. Can you replicate in a small test case? Barring that, what is the easiest way to reproduce if I download App::GTD?
Perhaps add a diagnostic assertion that $stmt is set just before calling the execute? One possibility is a double |
I've tried the simplest thing first, removing The simplest way to reproduce using
If you don't have
Wherever the database ends up needs to be configured in
Now, the application should be finally usable.
|
I haven't been able to produce this in a smaller test case just yet, sorry for that. I'll keep trying for a bit more, though. |
I still can't seem to reproduce this in a smaller test case from scratch. I also have little idea on how to debug |
I've installed enough to do the "add Foo" and it inserts a line in the Do you have a For debugging, I'd just clone the git repo for
|
Most actions indeed work fine, but
I'll clone |
From an empty database, I executed these:
None had any output. The database is left like this:
For reference:
|
I'm slightly concerned I may have changed |
I still encountered the problem when I was using Can you confirm if you're using the |
Bingo. I was not -- I was using |
Reproducability is a big step, thanks for bearing with me so far! |
A |
I've gotten it down to this:
If I disable the first SQL query ( If I enable the first SQL query, but run the second query with
On load, |
Neither do I, but I also don't have the best grasp of Perl 6 internals, let alone NativeCall structs and behaviours. I wonder if I can get in touch with the author of NativeLibs, and see if he has any ideas. Otherwise I'll have to rewrite my code to work differently, which would feel like defeat. |
I'm using DB::SQLite in a project, and one particular statement I'm trying to
execute
is throwing this error.Looking at the source, it looks like
.step
is being set toNil
somewhere, though I don't have an idea how that could happen.The text was updated successfully, but these errors were encountered: