Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 96965
BY: Paul Harvey (paul_harvey)
DATE: 2011-09-09 13:46
SUBJECT: Using a Sequence

 

Is the use of a Sequence suppotered with the ibm_db Rails adapter?

I have tried set_sequence_name in my model with no success

I have also tried this...

sql = "VALUES(NEXTVAL FOR CSTRACK.TCOLECT055_01_SEQ)"
res = ActiveRecord::Base.connection.execute(sql)

...which executes, but all I get back is a <IBM_DB::Statement:0x12866a98> and I cannot figure out how to get the returned value out of it!

Any suggestions?

Thanks!


Thread View

Thread Author Date
Using a SequencePaul Harvey2011-09-09 13:46
      RE: Using a SequencePaul Harvey2011-09-09 14:05

Post a followup to this message