[sqlite] Why am I getting an error?

2015-11-15 Thread Igor Korot
Richard, On Sat, Nov 14, 2015 at 7:13 PM, Richard Hipp wrote: > On 11/14/15, Igor Korot wrote: >> Hi, Richard, >> >> On Sat, Nov 14, 2015 at 6:54 PM, Richard Hipp wrote: >>> On 11/14/15, Igor Korot wrote: Hi, ALL, I am trying to use following query: "PRAGMA table_info(?)"

[sqlite] Why am I getting an error?

2015-11-14 Thread Richard Hipp
On 11/14/15, Igor Korot wrote: > Hi, Richard, > > On Sat, Nov 14, 2015 at 6:54 PM, Richard Hipp wrote: >> On 11/14/15, Igor Korot wrote: >>> Hi, ALL, >>> I am trying to use following query: >>> >>> "PRAGMA table_info(?)" >> >> The argument to a pragma is not an expression, and hence it cannot

[sqlite] Why am I getting an error?

2015-11-14 Thread Igor Korot
Hi, Richard, On Sat, Nov 14, 2015 at 6:54 PM, Richard Hipp wrote: > On 11/14/15, Igor Korot wrote: >> Hi, ALL, >> I am trying to use following query: >> >> "PRAGMA table_info(?)" > > The argument to a pragma is not an expression, and hence it cannot use > bound parameters. Thank you for that

[sqlite] Why am I getting an error?

2015-11-14 Thread Richard Hipp
On 11/14/15, Igor Korot wrote: > Hi, ALL, > I am trying to use following query: > > "PRAGMA table_info(?)" The argument to a pragma is not an expression, and hence it cannot use bound parameters. -- D. Richard Hipp drh at sqlite.org

[sqlite] Why am I getting an error?

2015-11-14 Thread Igor Korot
Hi, ALL, I am trying to use following query: "PRAGMA table_info(?)" with the sqlite3_prepare_v2()/sqlite3_bind()/sqlite3_step() sequence. However the call to sqlite3_prepare_v2() fails with the SQLITE_ERROR or the value of 1. The following call to sqlite3_ermsg() says "near "?": syntax error".