Re: [Gambas-user] Duplicated invalid record inserting into MySQL

2008-08-20 Thread João Luís Marques Pinto
christian.gambas wrote: > Le mercredi 20 août 2008, Benoit Minisini a écrit : > >> But do that: >> >> res = mDatabase.conn.Exec("INSERT INTO customer VALUES(name) (&1)", >> TextBox1.Text) >> > > You're right, Benoît, one could never be careful enough ! > > But, just to avoid confusion to

Re: [Gambas-user] Duplicated invalid record inserting into MySQL

2008-08-20 Thread christian.gambas
Le mercredi 20 août 2008, Benoit Minisini a écrit : > But do that: > > res = mDatabase.conn.Exec("INSERT INTO customer VALUES(name) (&1)", > TextBox1.Text) You're right, Benoît, one could never be careful enough ! But, just to avoid confusion to João Luís, you surely mean : res = mDatabase.

Re: [Gambas-user] Duplicated invalid record inserting into MySQL

2008-08-20 Thread Benoit Minisini
On mercredi 20 août 2008, christian.gambas wrote: > Le mercredi 20 août 2008, João Luís a écrit : > > sql = "INSERT INTO customer VALUES(name), ('" & TextBox1.Text & "')" > > I think It must be (at least with sqlite) : > sql = "INSERT INTO customer (name) VALUES('" & TextBox1.Text & "')" > > cheer

Re: [Gambas-user] Duplicated invalid record inserting into MySQL

2008-08-20 Thread christian.gambas
Le mercredi 20 août 2008, João Luís a écrit : > sql = "INSERT INTO customer VALUES(name), ('" & TextBox1.Text & "')" I think It must be (at least with sqlite) : sql = "INSERT INTO customer (name) VALUES('" & TextBox1.Text & "')" cheers :) ---