[libgda: 3/6] _perform_operation call was added.
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda: 3/6] _perform_operation call was added.
- Date: Mon, 8 Oct 2018 16:18:12 +0000 (UTC)
commit e0f70a19a16a4df19a2cd488b91ae86b9f002b2e
Author: Pavlo Solntsev <p sun fun gmail com>
Date: Mon Sep 24 21:55:07 2018 -0500
_perform_operation call was added.
tests/ddl/check-ddl-db-create.c | 11 ++++++++---
tests/ddl/check_db.xml | 24 ++++--------------------
2 files changed, 12 insertions(+), 23 deletions(-)
---
diff --git a/tests/ddl/check-ddl-db-create.c b/tests/ddl/check-ddl-db-create.c
index 9a0e03f15..9b03a0247 100644
--- a/tests/ddl/check-ddl-db-create.c
+++ b/tests/ddl/check-ddl-db-create.c
@@ -60,7 +60,7 @@ test_ddl_db_create_start(CheckCreatedb *self,
self->creator = gda_ddl_creator_new();
self->cnc = gda_connection_new_from_string("SQLite",
- "DB_DIR=.;DB_NAME=ddl_test",
+ "DB_DIR=.;DB_NAME=ddl_test_create",
NULL,
GDA_CONNECTION_OPTIONS_NONE,
NULL);
@@ -74,10 +74,15 @@ test_ddl_db_create_start(CheckCreatedb *self,
g_assert_true (res);
res = gda_ddl_creator_parse_file_from_path(self->creator,
- self->xmlfile,
- NULL);
+ self->xmlfile,
+ NULL);
g_assert_true (res);
+
+ res = gda_ddl_creator_perform_operation (self->creator,
+ self->cnc,
+ NULL);
+ g_assert_true (res);
}
static void
diff --git a/tests/ddl/check_db.xml b/tests/ddl/check_db.xml
index 343be3558..67f47f276 100644
--- a/tests/ddl/check_db.xml
+++ b/tests/ddl/check_db.xml
@@ -1,38 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE schema SYSTEM "../../libgda/libgda-ddl-creator.dtd">
<schema>
- <table name="employee" temptable="FALSE">
- <comment>employee table</comment>
+ <table name="employee">
<column name="id" type="int" pkey="TRUE"
unique="TRUE" nnul="TRUE" autoinc="FALSE">
</column>
- <column name="employee_id" type="int" unique="TRUE"
- nnul="TRUE" pkey="TRUE">
- </column>
- <column name="last_name" type="string" nnul="TRUE">
- <comment>Some comments here</comment>
- <value>Smith</value>
- </column>
- <column name="start_time" type="timestamp">
- <value>now()</value>
- </column>
- <column name="remote" type="boolean">
- </column>
- <column name="hight" type="numeric">
- <value scale="2">123.45</value>
- </column>
<column name="job_site_id" type="int" nnul="TRUE">
</column>
<fkey reftable="job_site">
<fk_field name="job_site_id" reffield="id"/>
</fkey>
</table>
- <table name="job_site" temptable="FALSE">
- <comment>employee table</comment>
+ <table name="job_site">
<column name="id" type="int" pkey="TRUE"
unique="TRUE" nnul="TRUE" autoinc="FALSE">
</column>
- <column name="location" type="string">
+ <column name="name" type="string">
+ <value size="20"></value>
</column>
</table>
</schema>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]