type_translation problem

23 views
Skip to first unread message

Manuel

unread,
Feb 15, 2018, 4:16:28 PM2/15/18
to sqlite3-ruby
Hello,

I know type_translation will be deprecated.

Anyhow I use it in some code and it's quite painful to migrate it.

I'm having this problem:

[30] pry(<test>)> @db2.type_translation = false
=> false
[31] pry(<test>)> @db2.execute(@default_query).first["flag"]
=> "\\N"
-----
[32] pry(<test>)> @db2.type_translation = true
=> true
[33] pry(<test>)> @db2.execute(@default_query).first["flag"]
=> true

Any ideas what I should do? I mean "\\N" shouldn't be true. It should be nil or false.

Thanks!
Reply all
Reply to author
Forward
0 new messages