SQLiteDataReader.GetName() with UseUTF16Encoding option fails on Linux
(1) By Alfonso Catanzaro (acatanzaro) on 2021-10-14 09:03:52 [source]
Hi, I have a problem with SQLiteDataReader.GetName(index) method that returns the field name at the index passed by argument. I use this nuget package: https://www.nuget.org/packages/System.Data.SQLite.Core/1.0.115
The problem is that the method executed in linux (I've tested on Ubuntu 20.04) or in a docker container (linux based) return a not well terminated string. (something like 'FieldName0&%°*çç0')
I wrote a sample c# netcore3.1 project that reproduce then bug as well: https://github.com/alfonsocatanzaro/SQLite_UTF16Encoding.
Can you take a look at it?
I will wait for your feedback.
(2) By mistachkin on 2021-10-14 18:15:55 in reply to 1 updated by 2.1 [link] [source]
Thanks for the report. I believe I see the problem and I'm working on a fix.
(2.1) By mistachkin on 2021-10-14 20:50:28 edited from 2.0 in reply to 1 [link] [source]
Thanks for the report. This is now fixed on trunk, here: