/*
* gdaex.c
*
- * Copyright (C) 2005-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2005-2019 Andrea Zagli <azagli@libero.it>
*
* This file is part of libgdaex.
*
b = gda_sql_builder_new (GDA_SQL_STATEMENT_DELETE);
gda_sql_builder_set_table (b, _table_name);
- if (keys != NULL && g_hash_table_size (fields) > 0)
+ if (keys != NULL && g_hash_table_size (keys) > 0)
{
g_hash_table_iter_init (&ht_iter_keys, keys);
while (g_hash_table_iter_next (&ht_iter_keys, &key_keys, &value_keys))
g_hash_table_insert (ht_fields, "incoming", gval);
g_message ("%s", gdaex_get_sql_from_hashtable (gdaex, GDAEX_SQL_SELECT, "clients", ht_keys, ht_fields));
- g_hash_table_destroy (ht_keys);
- g_hash_table_destroy (ht_fields);
g_message ("%s", gdaex_get_sql_from_hashtable (gdaex, GDAEX_SQL_INSERT, "clients", ht_keys, ht_fields));
+ g_hash_table_destroy (ht_keys);
+ g_hash_table_destroy (ht_fields);
+
ht_keys = g_hash_table_new (g_str_hash, g_str_equal);
ht_fields = g_hash_table_new (g_str_hash, g_str_equal);
g_value_set_string (gval, "and this is the new sur'name with '");
g_hash_table_insert (ht_fields, "surname", gval);
- ht_keys = g_hash_table_new (g_str_hash, g_str_equal);
gval = g_new0 (GValue, 1);
g_value_init (gval, G_TYPE_INT);
g_value_set_int (gval, 55);