stat.execute("CREATE INDEX IDXNAME ON TEST(NAME)");
stat.execute("CREATE INDEX IDXNAME ON TEST(NAME)");
stat.execute("INSERT INTO TEST VALUES(0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)");
stat.execute("INSERT INTO TEST VALUES(0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)");
stat.execute("INSERT INTO TEST VALUES(1, 'Hello', -1, 10.30, '2001-02-03 11:22:33.4455', X'FF0102', TRUE, 3000, 1234567890123456789, X'1122AA', DATE '0002-01-01', TIME '00:00:00', 'J\u00fcrg', 2.25)");
stat.execute("INSERT INTO TEST VALUES(1, 'Hello', -1, 10.30, '2001-02-03 11:22:33.4455', X'FF0102', TRUE, 3000, 1234567890123456789, X'1122AA', DATE '0002-01-01', TIME '00:00:00', 'J\u00fcrg', 2.25)");
...
@@ -45,6 +45,10 @@ public class TestLinkedTable extends TestBase {
...
@@ -45,6 +45,10 @@ public class TestLinkedTable extends TestBase {
stat.execute("CREATE LINKED TABLE IF NOT EXISTS LINK_TEST('org.h2.Driver', 'jdbc:h2:"+BASE_DIR+"/linked1', 'sa1', 'abc', 'TEST')");
stat.execute("CREATE LINKED TABLE IF NOT EXISTS LINK_TEST('org.h2.Driver', 'jdbc:h2:"+BASE_DIR+"/linked1', 'sa1', 'abc', 'TEST')");
stat.execute("CREATE LINKED TABLE IF NOT EXISTS LINK_TEST('org.h2.Driver', 'jdbc:h2:"+BASE_DIR+"/linked1', 'sa1', 'abc', 'TEST')");
stat.execute("CREATE LINKED TABLE IF NOT EXISTS LINK_TEST('org.h2.Driver', 'jdbc:h2:"+BASE_DIR+"/linked1', 'sa1', 'abc', 'TEST')");
testRow(stat,"LINK_TEST");
testRow(stat,"LINK_TEST");
ResultSetrs=stat.executeQuery("SELECT * FROM LINK_TEST");
> CREATE MEMORY TABLE PUBLIC.TEST( ID INT DEFAULT (NEXT VALUE FOR PUBLIC.SYSTEM_SEQUENCE_0) NOT NULL NULL_TO_DEFAULT SEQUENCE PUBLIC.SYSTEM_SEQUENCE_0, IM_IE VARCHAR(10) )
> CREATE MEMORY TABLE PUBLIC.TEST( ID INT NOT NULL, IM_IE VARCHAR(10) )
> CREATE PRIMARY KEY ON PUBLIC.TEST(ID)
> CREATE PRIMARY KEY ON PUBLIC.TEST(ID)
> CREATE SEQUENCE PUBLIC.SYSTEM_SEQUENCE_0 START WITH 1 BELONGS_TO_TABLE
> CREATE MEMORY TABLE PUBLIC.TEST( ID BIGINT DEFAULT (NEXT VALUE FOR PUBLIC.SYSTEM_SEQUENCE_0) NOT NULL NULL_TO_DEFAULT SEQUENCE PUBLIC.SYSTEM_SEQUENCE_0, C CLOB, B BLOB )
> CREATE MEMORY TABLE PUBLIC.TEST( ID INT NOT NULL, C CLOB, B BLOB )
> CREATE PRIMARY KEY ON PUBLIC.TEST(ID)
> CREATE PRIMARY KEY ON PUBLIC.TEST(ID)
> CREATE SEQUENCE PUBLIC.SYSTEM_SEQUENCE_0 START WITH 3 BELONGS_TO_TABLE
> CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN
> CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN
> INSERT INTO PUBLIC.TEST(ID, C, B) VALUES(0, NULL, NULL)
> INSERT INTO PUBLIC.TEST(ID, C, B) VALUES(0, NULL, NULL)
> INSERT INTO PUBLIC.TEST(ID, C, B) VALUES(1, '', X'')
> INSERT INTO PUBLIC.TEST(ID, C, B) VALUES(1, '', X'')
> INSERT INTO PUBLIC.TEST(ID, C, B) VALUES(2, 'Cafe', X'cafe')
> INSERT INTO PUBLIC.TEST(ID, C, B) VALUES(2, 'Cafe', X'cafe')
> CREATE MEMORY TABLE PUBLIC.TEST( ID BIGINT DEFAULT (NEXT VALUE FOR PUBLIC.SYSTEM_SEQUENCE_0) NOT NULL NULL_TO_DEFAULT SEQUENCE PUBLIC.SYSTEM_SEQUENCE_0, NAME VARCHAR )
> CREATE MEMORY TABLE PUBLIC.TEST( ID INT NOT NULL, NAME VARCHAR )
> CREATE PRIMARY KEY ON PUBLIC.TEST(ID)
> CREATE PRIMARY KEY ON PUBLIC.TEST(ID)
> CREATE SEQUENCE PUBLIC.SYSTEM_SEQUENCE_0 START WITH 1 BELONGS_TO_TABLE
> CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN
> CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN
> rows: 5
> rows: 4
INSERT INTO TEST(NAME) VALUES('Hi'), ('World');
INSERT INTO TEST(ID, NAME) VALUES(1, 'Hi'), (2, 'World');
> CREATE MEMORY TABLE PUBLIC.WORD( WORD_ID BIGINT DEFAULT (NEXT VALUE FOR PUBLIC.SYSTEM_SEQUENCE_0) NOT NULL NULL_TO_DEFAULT SEQUENCE PUBLIC.SYSTEM_SEQUENCE_0, NAME VARCHAR )
> CREATE PRIMARY KEY ON PUBLIC.WORD(WORD_ID)
> CREATE SEQUENCE PUBLIC.SYSTEM_SEQUENCE_0 START WITH 1 BELONGS_TO_TABLE
> CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN
> rows: 5
alter table word alter column word_id restart with 30872;
alter table word alter column word_id restart with 30872;
> CREATE MEMORY TABLE PUBLIC.WORD( WORD_ID BIGINT DEFAULT (NEXT VALUE FOR PUBLIC.SYSTEM_SEQUENCE_0) NOT NULL NULL_TO_DEFAULT SEQUENCE PUBLIC.SYSTEM_SEQUENCE_0, NAME VARCHAR )
> WORD_ID NAME
> CREATE PRIMARY KEY ON PUBLIC.WORD(WORD_ID)
> ------- -----
> CREATE SEQUENCE PUBLIC.SYSTEM_SEQUENCE_0 START WITH 30872 BELONGS_TO_TABLE