[glom] Fixed the tests build.



commit a6688e62e16dd328fc5141ae30bcb98ca49688f3
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Feb 26 11:40:06 2010 +0100

    Fixed the tests build.
    
    * tests/test_python_execute_func.cc:
    * tests/test_python_execute_func_date.cc: Updated for the
    extra parameters for glom_evaluate_python_function_implementation().

 ChangeLog                              |    8 ++++++++
 tests/test_python_execute_func.cc      |    6 ++++--
 tests/test_python_execute_func_date.cc |    6 ++++--
 3 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 20592b9..62361aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-02-26  Murray Cumming  <murrayc murrayc com>
+
+	Fixed the tests build.
+
+	* tests/test_python_execute_func.cc:
+	* tests/test_python_execute_func_date.cc: Updated for the
+	extra parameters for glom_evaluate_python_function_implementation().
+
 2010-02-25  Murray Cumming  <murrayc murrayc com>
 
 	Python functions: Allow setting of values in the record via [].
diff --git a/tests/test_python_execute_func.cc b/tests/test_python_execute_func.cc
index e4a4437..c90c0a7 100644
--- a/tests/test_python_execute_func.cc
+++ b/tests/test_python_execute_func.cc
@@ -17,8 +17,10 @@ int main()
   try
   {
     value = Glom::glom_evaluate_python_function_implementation(
-      Glom::Field::TYPE_TEXT, calculation, field_values, 
-      0 /* document */, "" /* table name */, connection);
+      Glom::Field::TYPE_TEXT, calculation, field_values,
+      0 /* document */, "" /* table name */,
+      Glom::sharedptr<Glom::Field>(), Gnome::Gda::Value(), // primary key details. Not used in this test.
+      connection);
   }
   catch(const std::exception& ex)
   {
diff --git a/tests/test_python_execute_func_date.cc b/tests/test_python_execute_func_date.cc
index b7c8fb0..c574218 100644
--- a/tests/test_python_execute_func_date.cc
+++ b/tests/test_python_execute_func_date.cc
@@ -22,8 +22,10 @@ int main()
 
   //Execute a python function:
   const Gnome::Gda::Value value = Glom::glom_evaluate_python_function_implementation(
-    Glom::Field::TYPE_DATE, calculation, field_values, 
-    0 /* document */, "" /* table name */, connection);
+    Glom::Field::TYPE_DATE, calculation, field_values,
+    0 /* document */, "" /* table name */,
+    Glom::sharedptr<Glom::Field>(), Gnome::Gda::Value(), // primary key details. Not used in this test.
+    connection);
 
   //std::cout << "type=" << g_type_name(value.get_value_type()) << std::endl;
 



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