activerecord-jdbc
  1. activerecord-jdbc
  2. ACTIVERECORD_JDBC-3

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9
    • Fix Version/s: None
    • Component/s: HSQL/H2
    • Labels:
      None

      Description

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            enebo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: