Here are the script/console actions:
C:\eclipse\workspace\eSimplyOnlineRails>ruby script/console
Loading development environment (Rails 2.0.2)
session = CGI::Session::ActiveRecordStore::Session.new
=> #<CGI::Session::ActiveRecordStore::Session id: nil, session_id: nil,
data: ni
l, created_at: nil, updated_at: nil>
session.new_record?
=> true
session[:test_key] = 3
=> 3
session.save
=> []
session.save!
=> []
and here are the entries in the development.log file (note that all of
this is output on the instantiation of the session, nothing gets written
to the log after that).
e[4;36;1mCGI::Session::ActiveRecordStore::Session Columns
(0.000000)e[0m e[0;1m
SELECT
cols.COLUMN_NAME as ColName,
cols.COLUMN_DEFAULT as DefaultValue,
cols.NUMERIC_SCALE as numeric_scale,
cols.NUMERIC_PRECISION as numeric_precision,
cols.DATA_TYPE as ColType,
cols.IS_NULLABLE As IsNullable,
COL_LENGTH(cols.TABLE_NAME, cols.COLUMN_NAME) as Length,
COLUMNPROPERTY(OBJECT_ID(cols.TABLE_NAME), cols.COLUMN_NAME,
‘IsIdentity’) as IsIdentity,
cols.NUMERIC_SCALE as Scale,
cols.ORDINAL_POSITION as Position
FROM INFORMATION_SCHEMA.COLUMNS cols
WHERE cols.TABLE_NAME = ‘sessions’
ORDER BY cols.ORDINAL_POSITION
e[0m
MemCache Get (0.020000) parse_tree_refresh_times
MemCache Get (0.000000) list_data_refresh_times
e[4;36;1mCGI::Session::ActiveRecordStore::Session Columns
(0.000000)e[0m e[0;1m
SELECT
cols.COLUMN_NAME as ColName,
cols.COLUMN_DEFAULT as DefaultValue,
cols.NUMERIC_SCALE as numeric_scale,
cols.NUMERIC_PRECISION as numeric_precision,
cols.DATA_TYPE as ColType,
cols.IS_NULLABLE As IsNullable,
COL_LENGTH(cols.TABLE_NAME, cols.COLUMN_NAME) as Length,
COLUMNPROPERTY(OBJECT_ID(cols.TABLE_NAME), cols.COLUMN_NAME,
‘IsIdentity’) as IsIdentity,
cols.NUMERIC_SCALE as Scale,
cols.ORDINAL_POSITION as Position
FROM INFORMATION_SCHEMA.COLUMNS cols
WHERE cols.TABLE_NAME = ‘sessions’
ORDER BY cols.ORDINAL_POSITION
e[0m
MemCache Get (0.010000) parse_tree_refresh_times
MemCache Get (0.000000) list_data_refresh_times
e[4;36;1mCGI::Session::ActiveRecordStore::Session Columns
(0.010000)e[0m e[0;1m
SELECT
cols.COLUMN_NAME as ColName,
cols.COLUMN_DEFAULT as DefaultValue,
cols.NUMERIC_SCALE as numeric_scale,
cols.NUMERIC_PRECISION as numeric_precision,
cols.DATA_TYPE as ColType,
cols.IS_NULLABLE As IsNullable,
COL_LENGTH(cols.TABLE_NAME, cols.COLUMN_NAME) as Length,
COLUMNPROPERTY(OBJECT_ID(cols.TABLE_NAME), cols.COLUMN_NAME,
‘IsIdentity’) as IsIdentity,
cols.NUMERIC_SCALE as Scale,
cols.ORDINAL_POSITION as Position
FROM INFORMATION_SCHEMA.COLUMNS cols
WHERE cols.TABLE_NAME = ‘sessions’
ORDER BY cols.ORDINAL_POSITION
e[0m
Wes