Re: [Interest] QSqlQuery bind value

2021-03-17 Thread Jérôme Godbout
Oh, great, thanks for the pointer, will do, good to known. On Mar 16, 2021, at 5:48 PM, Elvis Stansvik mailto:elvst...@gmail.com>> wrote: Yea, you can always use db.driver()->escapeIdentifier(x, QSqlDriver::TableName) if you want to sleep a little better anyway. Elvis Den tis 16 mars 2021 kl

Re: [Interest] QSqlQuery bind value

2021-03-16 Thread Elvis Stansvik
Yea, you can always use db.driver()->escapeIdentifier(x, QSqlDriver::TableName) if you want to sleep a little better anyway. Elvis Den tis 16 mars 2021 kl 21:52 skrev Jérôme Godbout : > > Thanks, that was the problems, this is annoying, but I do create the query > prepare with a String with arg

Re: [Interest] QSqlQuery bind value

2021-03-16 Thread Jérôme Godbout
Thanks, that was the problems, this is annoying, but I do create the query prepare with a String with arg (I known this is bad, but the tablename is provided by inner code only, this is not user inputs of any sort). On Mar 16, 2021, at 4:23 PM, Elvis Stansvik mailto:elvst...@gmail.com>> wrote:

Re: [Interest] QSqlQuery bind value

2021-03-16 Thread Elvis Stansvik
Den tis 16 mars 2021 kl 21:21 skrev Elvis Stansvik : > > Den tis 16 mars 2021 kl 20:19 skrev Jérôme Godbout : > > > > Hi, > > > > I’m trying to use the Sql with Sqlite with Qt. The database seem to be > > working just fine, but I run into troubles with the bind value. The named > > bind doesn’t s

Re: [Interest] QSqlQuery bind value

2021-03-16 Thread Elvis Stansvik
Den tis 16 mars 2021 kl 20:19 skrev Jérôme Godbout : > > Hi, > > I’m trying to use the Sql with Sqlite with Qt. The database seem to be > working just fine, but I run into troubles with the bind value. The named > bind doesn’t seem to work (Qt 5.15.2, Mac OS): > > m_sql->m_create_table(m_database

[Interest] QSqlQuery bind value

2021-03-16 Thread Jérôme Godbout
Hi, I’m trying to use the Sql with Sqlite with Qt. The database seem to be working just fine, but I run into troubles with the bind value. The named bind doesn’t seem to work (Qt 5.15.2, Mac OS): m_sql->m_create_table(m_database); m_sql->m_create_table.prepare(R"raw(CREATE TABLE IF NOT EXISTS