Use long text in sqlite3 Database

0

I'm doing a program in C ++ in which I use a SQLite database. I have attributes of type string that I save as text. The problem is that when these strings are of great length, do not insert or read as you should, but other characters appear, despite the fact that, from what I have read, text supports texts of up to 33,000 characters. What could be the problem? What can I use to store long strings in the Database?

    
asked by pepito 03.06.2018 в 16:56
source

1 answer

0

I solved the problem by passing it to bind_text as the last parameter SQL_TRANSIENT instead of SQL_STATIC

    
answered by 03.06.2018 в 17:56