Re: [sqlite] shell crashes when there is no column name

2014-01-15 Thread Richard Hipp
On Wed, Jan 15, 2014 at 6:48 AM, Clemens Ladisch wrote: > > And a NULL column name is considered a bug: > > > Not so much a "bug" as "undesirable". Note that even with the change referenced above, sqlite3_column_name() might still return NULL if th

Re: [sqlite] shell crashes when there is no column name

2014-01-15 Thread Clemens Ladisch
Klaas V wrote: > Clemens wrote: >> $ sqlite3 >> SQLite version 3.8.3 2014-01-11 12:52:25 >> Enter ".help" for instructions >> Enter SQL statements terminated with a ";" >> sqlite> .header on >> sqlite> values(1); >> (null) >> 1 >> sqlite> .mode html >> sqlite> values(1); >> Segmentation

Re: [sqlite] shell crashes when there is no column name

2014-01-15 Thread Klaas V
Clemens wrote: >  $ sqlite3 >  SQLite version 3.8.3 2014-01-11 12:52:25 >  Enter ".help" for instructions >  Enter SQL statements terminated with a ";" >  sqlite> .header on >  sqlite> values(1); >  (null) >  1 >  sqlite> .mode html >  sqlite> values(1); >  Segmentation fault One runs the risk s

[sqlite] shell crashes when there is no column name

2014-01-13 Thread Clemens Ladisch
Hi, the shell does not always check the return value of sqlite3_column_name() for being NULL: $ sqlite3 SQLite version 3.8.3 2014-01-11 12:52:25 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .header on sqlite> values(1); (null) 1 sqlite> .mode