Re: insert going wrong after going from Sybase to MySQL

2010-01-23 Thread Jeff Butler
Use the is a holdover from iBATIS 1.x I believe. Jeff Butler On Sat, Jan 23, 2010 at 4:20 PM, StevenF wrote: > > Hi Guys, > > Still no luck here. > > I have this, but doesn't work: > >     parameterClass="nl.chessone40.domain.Chesser" > >     >      select last_ins

Re: insert going wrong after going from Sybase to MySQL

2010-01-23 Thread Clinton Begin
Keep the selectKey after the statement for MySQL and other auto-increment style key generators. Only sequences like those supported by Oracle should come before the statement. Also, a full stack trace might help. Clinton On Sat, Jan 23, 2010 at 3:20 PM, StevenF wrote: > > Hi Guys, > > Still n

RE: insert going wrong after going from Sybase to MySQL

2010-01-23 Thread StevenF
Hi Guys, Still no luck here. I have this, but doesn't work: select last_insert_id() as value INSERT INTO Chesser (login, password, firstName, lastName, credits) value

RE: insert going wrong after going from Sybase to MySQL

2010-01-22 Thread Niels Beekman
te...@web2.filipowicz.com] Sent: Friday, January 22, 2010 11:32 PM To: user-java@ibatis.apache.org Subject: Re: insert going wrong after going from Sybase to MySQL Hi Thanks for the reply! Ok so I did this: INSERT INTO Chesser (login, password,

Re: insert going wrong after going from Sybase to MySQL

2010-01-22 Thread StevenF
Hi Thanks for the reply! Ok so I did this: INSERT INTO Chesser (login, password, firstName, lastName, credits) values (#login#, #password#, #firstName#, #lastName#,

Re: insert going wrong after going from Sybase to MySQL

2010-01-22 Thread charlie bird
CORRECTION select last_insert_id() Damn these fat fingers --- On Fri, 22/1/10, StevenF wrote: > From: StevenF > Subject: insert going wrong after going from Sybase to MySQL > To: user-java@ibatis.apache.org > Date: Friday, 22 January, 2010, 15:19 > > Hi All, > > I'm switching the database o

Re: insert going wrong after going from Sybase to MySQL

2010-01-22 Thread charlie bird
MySql doesn't do @@IDENITY Use this: select last_insert_id instead --- On Fri, 22/1/10, StevenF wrote: > From: StevenF > Subject: insert going wrong after going from Sybase to MySQL > To: user-java@ibatis.apache.org > Date: Friday, 22 January, 2010, 15:19 > > Hi All, > > I'm switching the