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
Comparison of Fixnum with String failed #45
Comments
Very weird. I did a quick test, and can't reproduce it, so I'll need a few more details. First, which version of timetrap are you running? Next could you run a command that raises the error with the |
Thanks, I use version 1.7.7. Here is the output with the debug flag:
|
@jostber I've been looking to this some more and am still a bit perplexed by why it's happening. It seems like it's the same issue as #35, which was fixed in version 1.7.6 (95c887e). Basically sqlite will return integers from string columns if those can be coerced to numeric values (more details here: jeremyevans/sequel#365). I thought maybe since you're a long time user the fix wouldn't work without recreating the db, but that doesn't seem to be the case. My best guess is it's related to the version of the sequel, or sqlite gem you're running. Could you send me those versions? Also it looks like you're using a custom formatter ( I'd try upgrading the sequel gem and seeing if that fixes the problem. If not, send me the output of |
Thanks. Here is the output of 'gem list': actionmailer (2.3.11)actionpack (2.3.11) |
It seems like I solved have this issue now. Running the command 't list' also failed, and then I found that I had inadvertently entered an entry to a sheet called 10509. When I moved the entry and deleted the sheet everything works as expected again. |
Glad you fixed it. This is still pretty weird. You should be able to name a sheet with a numeric value. Cheers |
I edited an entry today and it was named with a number before the text, but now "t d all" does not work. Output of all commands with parameter all gives an error:
Comparison of Fixnum with String failed
or
Comparison of String with 10509 failed
Other commands seems to work like "t d "
The text was updated successfully, but these errors were encountered: