mysql: troubles with insert
Henk van der Velden
henk at iglow-media.nl
Fri Jul 20 03:18:02 CDT 2007
it is not an auto_increment field.
I think something is wrong in the way Rev creates a query out of my
If I force Rev to put the right value in the query by doing this:
put "INSERT INTO g2_Entity() VALUES('"&vars&"',:
2,:3,:4,:2,:3,:5,:4)" into tsql
the record is inserted with the correct id.
But the standard way:
put "INSERT INTO g2_Entity() VALUES(:1,:2,:3,:4,:2,:3,:5,:4)"
inserts it with the wrong id.
I have double checked the values of my array vars - it is OK.
I was wondering if this might have something to do with the way Rev
handles arrays. Rev 'does' only associative arrays, not numeric
arrays, isn' t it? I was a bit surprised to find out that I had to
use numeric arrays in order to build queries.
Just a thought..
> Probably a silly question, but I don't suppose id is an auto_increment
> If so, you want to specify null for the id and you won't be able to
> Mark Wieder
> mwieder at ahsoftware.net
More information about the use-livecode