Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Newer versions of do_hsqldb need lengths for VARCHAR / VARBINARY

  • Loading branch information...
commit 4f7f64136c482ccd31d4261e105250603b8180b7 1 parent 1ca67dd
@dbussink dbussink authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 do_hsqldb/spec/spec_helper.rb
View
8 do_hsqldb/spec/spec_helper.rb
@@ -70,11 +70,11 @@ def setup_test_environment
id INTEGER IDENTITY,
code CHAR(8) DEFAULT 'A14' NULL,
name VARCHAR(200) DEFAULT 'Super Widget' NULL,
- shelf_location VARCHAR NULL,
+ shelf_location VARCHAR(200) NULL,
description LONGVARCHAR NULL,
- image_data VARBINARY NULL,
+ image_data VARBINARY(1024) NULL,
ad_description LONGVARCHAR NULL,
- ad_image VARBINARY NULL,
+ ad_image VARBINARY(1024) NULL,
whitepaper_text LONGVARCHAR NULL,
cad_drawing LONGVARBINARY NULL,
flags BOOLEAN DEFAULT 0,
@@ -83,7 +83,7 @@ def setup_test_environment
super_number BIGINT DEFAULT 9223372036854775807,
weight FLOAT DEFAULT 1.23,
cost1 REAL DEFAULT 10.23,
- cost2 DECIMAL DEFAULT 50.23,
+ cost2 DECIMAL(10,2) DEFAULT 50.23,
release_date DATE DEFAULT '2008-02-14',
release_datetime DATETIME DEFAULT '2008-02-14 00:31:12',
release_timestamp TIMESTAMP DEFAULT '2008-02-14 00:31:31'
Please sign in to comment.
Something went wrong with that request. Please try again.