processone/erlang-sqlite3

Utf-8 encoding of table names

Opened this issue · 1 comments

sqlite> .tables
Asetukset      Hyppääjät   Lentäjät     Pokat          Tarvikkeet   
Eurot          Hypyt          Luokat         Pondimaksut    Tyypit       
Hinnat         Koneet         Maksut         Stuff          Varjot       
Hyppymestarit  Korvaukset     Ostokset       Suoritukset

But:

(hlu@192.168.0.40)2> sqlite3:list_tables(hlu).
['Asetukset','Eurot','Hinnat','Hyppääjät',
 'Hyppymestarit','Hypyt','Koneet','Korvaukset','Lentäjät',
 'Luokat','Maksut','Ostokset','Pokat','Pondimaksut','Stuff',
 'Suoritukset','Tarvikkeet','Tyypit','Varjot']

Although:

(hlu@192.168.0.40)3> sqlite3:sql_exec(hlu, "select count(id)i from Hyppääjät where id >0;").    
[{columns,["i"]},{rows,[{1270}]}]

There is the very same issue of the column names also.

@prefiks: Have you seen this ticket?