SQLite Forum

Timeline
Login

1 forum post by user acatanzaro

2021-10-14
09:03 Post: SQLiteDataReader.GetName() with UseUTF16Encoding option fails on Linux (artifact: 1d1c43493a user: acatanzaro)

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.

Best regards.

Alfonso.