From e9a37e4400398051843780234d9cc7c486ab240d Mon Sep 17 00:00:00 2001 From: David Syer Date: Fri, 30 Oct 2009 11:26:45 +0000 Subject: [PATCH] RESOLVED - issue SPR-5917: DataSourceInitializer and namespace support for creating and populating databases Moved classes but not resources (fixed) --- .../org/springframework/jdbc/datasource/embedded/db-schema.sql | 3 +++ .../springframework/jdbc/datasource/embedded/db-test-data.sql | 1 + 2 files changed, 4 insertions(+) create mode 100644 org.springframework.jdbc/src/test/resources/org/springframework/jdbc/datasource/embedded/db-schema.sql create mode 100644 org.springframework.jdbc/src/test/resources/org/springframework/jdbc/datasource/embedded/db-test-data.sql diff --git a/org.springframework.jdbc/src/test/resources/org/springframework/jdbc/datasource/embedded/db-schema.sql b/org.springframework.jdbc/src/test/resources/org/springframework/jdbc/datasource/embedded/db-schema.sql new file mode 100644 index 0000000000..73d0feb406 --- /dev/null +++ b/org.springframework.jdbc/src/test/resources/org/springframework/jdbc/datasource/embedded/db-schema.sql @@ -0,0 +1,3 @@ +drop table T_TEST if exists; + +create table T_TEST (NAME varchar(50) not null); \ No newline at end of file diff --git a/org.springframework.jdbc/src/test/resources/org/springframework/jdbc/datasource/embedded/db-test-data.sql b/org.springframework.jdbc/src/test/resources/org/springframework/jdbc/datasource/embedded/db-test-data.sql new file mode 100644 index 0000000000..51de08aac1 --- /dev/null +++ b/org.springframework.jdbc/src/test/resources/org/springframework/jdbc/datasource/embedded/db-test-data.sql @@ -0,0 +1 @@ +insert into T_TEST (NAME) values ('Keith'); \ No newline at end of file