[planner: 9/40] too few arguments to function 'gda_data_model_get_value_at'.




commit ffd6db9e2e0ac82b69883428a156714b1e93178e
Author: Ahmed Baïzid <ahmed baizid org>
Date:   Wed Jun 17 18:29:49 2015 +0200

    too few arguments to function 'gda_data_model_get_value_at'.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=584556

 libplanner/mrp-sql.c     | 10 +++++-----
 src/planner-sql-plugin.c |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libplanner/mrp-sql.c b/libplanner/mrp-sql.c
index fc9b7cce..12f02677 100644
--- a/libplanner/mrp-sql.c
+++ b/libplanner/mrp-sql.c
@@ -299,7 +299,7 @@ get_int (GdaDataModel *model, gint row, gint column)
        gchar    *str;
        gint      i;
 
-       value = (GValue *) gda_data_model_get_value_at (model, column, row);
+       value = (GValue *) gda_data_model_get_value_at (model, column, row, NULL);
        if (value == NULL) {
                g_warning ("Failed to get a value: (%d,%d)", column, row);
                d(sql_show_result (model));
@@ -319,7 +319,7 @@ get_id (GdaDataModel *model, gint row, gint column)
        gchar    *str;
        gint      i;
 
-       value = (GValue *) gda_data_model_get_value_at (model, column, row);
+       value = (GValue *) gda_data_model_get_value_at (model, column, row, NULL);
        if (value == NULL) {
                g_warning ("Failed to get a value: (%d,%d)", column, row);
                d(sql_show_result (model));
@@ -346,7 +346,7 @@ get_string (GdaDataModel *model, gint row, gint column)
        gchar    *ret;
        gchar    *str;
 
-       value = (GValue *) gda_data_model_get_value_at (model, column, row);
+       value = (GValue *) gda_data_model_get_value_at (model, column, row, NULL);
        if (value == NULL) {
                g_warning ("Failed to get a value: (%d,%d)", column, row);
                d(sql_show_result (model));
@@ -383,7 +383,7 @@ get_boolean (GdaDataModel *model, gint row, gint column)
 {
        GValue *value;
 
-       value = (GValue *) gda_data_model_get_value_at (model, column, row);
+       value = (GValue *) gda_data_model_get_value_at (model, column, row, NULL);
        if (value == NULL) {
                g_warning ("Failed to get a value: (%d,%d)", column, row);
                d(sql_show_result (model));
@@ -400,7 +400,7 @@ get_float (GdaDataModel *model, gint row, gint column)
        gchar    *str;
        gdouble   d;
 
-       value = (GValue *) gda_data_model_get_value_at (model, column, row);
+       value = (GValue *) gda_data_model_get_value_at (model, column, row, NULL);
 
        if (value == NULL) {
                g_warning ("Failed to get a value: (%d,%d)", column, row);
diff --git a/src/planner-sql-plugin.c b/src/planner-sql-plugin.c
index ea2f46a2..a5510b39 100644
--- a/src/planner-sql-plugin.c
+++ b/src/planner-sql-plugin.c
@@ -175,7 +175,7 @@ get_int (GdaDataModel *res, gint row, gint column)
        GValue   *value;
        gint      i;
 
-       value = (GValue *) gda_data_model_get_value_at (res, column, row);
+       value = (GValue *) gda_data_model_get_value_at (res, column, row, NULL);
        if (value == NULL) {
                g_warning ("Failed to get a value: (%d,%d)", column, row);
                return INT_MAX;
@@ -199,7 +199,7 @@ get_string (GdaDataModel *res, gint row, gint column)
        gsize     len;
        GValue   *value;
 
-       value = (GValue *) gda_data_model_get_value_at (res, column, row);
+       value = (GValue *) gda_data_model_get_value_at (res, column, row, NULL);
        if (value == NULL) {
                g_warning ("Failed to get a value: (%d,%d)", column, row);
                return "";


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