Wednesday, 15 June 2011

error java.sql.SQLException: Parameter index out of range -



error java.sql.SQLException: Parameter index out of range -

i still error don't provide value 1 parameter , don't have thought wrong.

ps("insert slide (presentation_id, duration, position, type) values (?, ?, ?, ?) ").set(this.getid()).set(slide.getduration()).set(slide.getposition()).set(slide.gettype().ordinal()).update();

in table not provide value 1 column autoincrement set.

everything seems alright me please give advice might wrong.

dont include auto inc fieldin column list.

ps("insert slide (duration, position, type) values (?, ?, ?) ").set(slide.getduration()).set(slide.getposition()).set(slide.gettype().ordinal()).update();

java

No comments:

Post a Comment