[libgda] Poring tests to use new API



commit 1198cd21edd962c4dd36810348eb85cccfe7cd31
Author: Pavlo Solntsev <p sun fun gmail com>
Date:   Thu May 28 11:35:13 2020 -0500

    Poring tests to use new API

 tests/test-server-operation-postgresql.c | 2 +-
 tests/test-server-operation-sqlite.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/test-server-operation-postgresql.c b/tests/test-server-operation-postgresql.c
index 83dd89037..c6975929c 100644
--- a/tests/test-server-operation-postgresql.c
+++ b/tests/test-server-operation-postgresql.c
@@ -1280,7 +1280,7 @@ test_server_operation_operations_db (TestObjectFixture *fixture,
   g_object_unref (fcol);
   g_object_unref (field);
 
-  res = gda_db_table_add_index (new_table, index, fixture->cnc, TRUE, &error);
+  res = gda_ddl_modifiable_create (GDA_DDL_MODIFIABLE (index), fixture->cnc, new_table, NULL);
 
   if (!res)
     GDA_PGSQL_ERROR_HANDLE (error);
diff --git a/tests/test-server-operation-sqlite.c b/tests/test-server-operation-sqlite.c
index 113071115..25bccf838 100644
--- a/tests/test-server-operation-sqlite.c
+++ b/tests/test-server-operation-sqlite.c
@@ -979,7 +979,7 @@ test_server_operation_operations_db (TestObjectFixture *fixture,
   g_object_unref (fcol);
   g_object_unref (field);
 
-  res = gda_db_table_add_index (new_table, index, fixture->cnc, TRUE, NULL);
+  res = gda_ddl_modifiable_create (GDA_DDL_MODIFIABLE (index), fixture->cnc, new_table, NULL);
 
   g_assert_true (res);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]