Issue Details (XML | Word | Printable)

Key: ACTIVERECORD_JDBC-3
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: enebo
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
activerecord-jdbc

Empty default String returns wrong value: t.column :sample_string, :string, :default => ''

Created: 30/Jan/09 07:59 PM   Updated: 30/Jan/09 08:02 PM
Component/s: HSQL/H2
Affects Version/s: 0.9
Fix Version/s: None

Time Tracking:
Not Specified

Tags:


 Description  « Hide

Given a simple string with a default value (I am sure any type which can have :default => ''):

    create_table "db_types", :force => true do |t|
      t.column :sample_string, :string, :default => ''
    end

The response value on H2 and Hsql are both bad (e.g. not an empty string).

In test/simple.rb#test_string() I have a guard to not run against both of these conjoined adapters. Remove the guard to work on this bug.



There are no comments yet on this issue.