 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Paul Harvey
Using a Sequence [ reply ] 2011-09-09 13:46
|
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!
|
|
 |