[sqlite] data which when inserted into a table cannot be queried - a bug ?

2015-03-11 Thread Martin Engelschalk
Hi, SELECT oid, ip, name FROM hosts ; 1|a.proper.host.name|2886748296 shows that ip = 'a.proper.host.name ' and name = 2886748296, so of course your queries give no data. The problem is that your insert statement does not name the columns, which is never a good idea. Martin Am 11.03.2015 um

[sqlite] data which when inserted into a table cannot be queried - a bug ?

2015-03-11 Thread Jason Vas Dias
Aargh! Thank You! Someone else's eyes do help sometimes... On 11/03/2015, Hick Gunter wrote: > You have swapped data and field names in the insert. > > -Urspr?ngliche Nachricht- > Von: Jason Vas Dias [mailto:jason.vas.dias at gmail.com] > Gesendet: Mittwoch, 11. M?rz 2015 13:08 > An:

[sqlite] data which when inserted into a table cannot be queried - a bug ?

2015-03-11 Thread Simon Slavin
> On 11 Mar 2015, at 12:10pm, Jason Vas Dias > wrote: > > I have a table: > > CREATE TABLE hosts > ( >ip INTEGER NOT NULL , >nameTEXT NOT NULL > ); > > My application does: > > BEGIN TRANSACTION; > INSERT INTO hosts > VALUES ( "a.proper.host.name",

[sqlite] data which when inserted into a table cannot be queried - a bug ?

2015-03-11 Thread Hick Gunter
You have swapped data and field names in the insert. -Urspr?ngliche Nachricht- Von: Jason Vas Dias [mailto:jason.vas.dias at gmail.com] Gesendet: Mittwoch, 11. M?rz 2015 13:08 An: sqlite-users at mailinglists.sqlite.org Betreff: [sqlite] data which when inserted into a table cannot be

[sqlite] data which when inserted into a table cannot be queried - a bug ?

2015-03-11 Thread Jason Vas Dias
Good day - This is the first problem I've encountered with SQLite having used it trouble free for a number of years, so I was surprised when I discovered I can insert data into a table that then cannot be queried : I have a table: CREATE TABLE hosts ( ip INTEGER NOT NULL ,

[sqlite] data which when inserted into a table cannot be queried - a bug ?

2015-03-11 Thread Jason Vas Dias
Good day - This is the first problem I've encountered with SQLite having used it trouble free for a number of years, so I was surprised when I discovered I can insert data into a table that then cannot be queried : I have a table: CREATE TABLE hosts ( ip INTEGER NOT NULL , name

[sqlite] data which when inserted into a table cannot be queried - a bug ?

2015-03-11 Thread John McKown
On Wed, Mar 11, 2015 at 7:08 AM, Jason Vas Dias wrote: > Good day - > This is the first problem I've encountered with SQLite having > used it trouble free for a number of years, so I was surprised > when I discovered I can insert data into a table that then cannot > be queried : > > I have a