$dbh->do("CREATE TABLE ${q}track${q} (${q}trackid${q} NUMBER(12), ${q}cd${q} NUMBER(12) REFERENCES CD(${q}cdid${q}) DEFERRABLE, ${q}position${q} NUMBER(12), ${q}title${q} VARCHAR(255), ${q}last_updated_on${q} DATE, ${q}last_updated_at${q} DATE)");
$dbh->do("ALTER TABLE ${q}track${q} ADD (CONSTRAINT ${q}track_pk${q} PRIMARY KEY (${q}trackid${q}))");
- $dbh->do("CREATE TABLE ${q}bindtype_test${q} (${q}id${q} integer NOT NULL PRIMARY KEY, ${q}bytea${q} integer NULL, ${q}blob${q} blob NULL, ${q}clob${q} clob NULL)");
+ $dbh->do("CREATE TABLE ${q}bindtype_test${q} (${q}id${q} integer NOT NULL PRIMARY KEY, ${q}bytea${q} integer NULL, ${q}blob${q} blob NULL, ${q}clob${q} clob NULL, ${q}a_memo${q} integer NULL)");
$dbh->do(qq{
CREATE OR REPLACE TRIGGER ${q}artist_insert_trg_auto${q}
$dbh->do(qq[
CREATE TABLE bindtype_test
(
- id INT IDENTITY PRIMARY KEY,
- bytea IMAGE NULL,
- blob IMAGE NULL,
- clob TEXT NULL
+ id INT IDENTITY PRIMARY KEY,
+ bytea IMAGE NULL,
+ blob IMAGE NULL,
+ clob TEXT NULL,
+ a_memo IMAGE NULL
)
],{ RaiseError => 1, PrintError => 0 });
}
bytea => 1,
blob => $binstr{large},
clob => $new_str,
+ a_memo => 2,
},
{
bytea => 1,
blob => $binstr{large},
clob => $new_str,
+ a_memo => 2,
},
]);
} 'insert_bulk with blobs does not die';
bytea => 1,
blob => $binstr{large},
clob => $new_str,
+ a_memo => 2,
},
{
id => 2,
bytea => 1,
blob => $binstr{large},
clob => $new_str,
+ a_memo => 2,
},
]);
} 'insert_bulk with blobs and explicit identity does NOT die';
$dbh->do(qq[
CREATE TABLE bindtype_test
(
- id INT NOT NULL PRIMARY KEY,
- bytea INT NULL,
- blob LONG BINARY NULL,
- clob LONG VARCHAR NULL
+ id INT NOT NULL PRIMARY KEY,
+ bytea INT NULL,
+ blob LONG BINARY NULL,
+ clob LONG VARCHAR NULL,
+ a_memo INT NULL
)
],{ RaiseError => 1, PrintError => 1 });
"id" INT PRIMARY KEY,
"bytea" INT,
"blob" BLOB,
- "clob" BLOB SUB_TYPE TEXT
+ "clob" BLOB SUB_TYPE TEXT,
+ "a_memo" INT
)
]);
# the blob/clob are for reference only, will be useful when we switch to SQLT and can test Oracle along the way
$dbh->do(qq[
- CREATE TABLE bindtype_test
+ CREATE TABLE bindtype_test
(
id serial NOT NULL PRIMARY KEY,
bytea bytea NULL,
blob bytea NULL,
- clob text NULL
+ clob text NULL,
+ a_memo text NULL
);
],{ RaiseError => 1, PrintError => 1 });
}
data_type => 'clob',
is_nullable => 1,
},
+ 'a_memo' => {
+ data_type => 'memo',
+ is_nullable => 1,
+ },
);
__PACKAGE__->set_primary_key('id');
--
-- Created by SQL::Translator::Producer::SQLite
--- Created on Thu Nov 18 08:18:15 2010
+-- Created on Mon Feb 21 12:10:04 2011
--
--
id INTEGER PRIMARY KEY NOT NULL,
bytea blob,
blob blob,
- clob clob
+ clob clob,
+ a_memo memo
);
--