5 Oct 2007 15:38
Session handling busted on Oracle
Hi, Ruby 1.8.6 (one-click) Camping 1.5 I'd submit this as a bug, but the tracker says I'm forbidden, so here you go. The first problem is that the sql to create the sessions table is broken. This is what it tried to send: CREATE TABLE sessions ( id NUMBER(38) NOT NULL PRIMARY KEY (38), --> Problem here hashid VARCHAR2(32), created_at DATE, ivars CLOB DEFAULT empty_clob() ) The problem is that second "(38)" after "PRIMARY KEY". So, I removed that and created the table manually. The next problem was a missing Oracle sequence (which I had no idea was required, but ok). I figured out (by stepping through oci8.rb) that the name of the sequence should be "sessions_seq". For that I used the following snippet: CREATE SEQUENCE ACS_SUPPORT.SESSIONS_SEQ START WITH 50 MAXVALUE 999999999999999999999999999 MINVALUE 0(Continue reading)
RSS Feed