From: Andrea Zagli <azagli@libero.it>
Date: Fri, 4 Oct 2019 13:54:00 +0000 (+0200)
Subject: Bugfix SqlBuilder: no table name if functions ::from* not called before others.
X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=99f8ed11c16f528d6bef71001ef5ce142ff401f7;p=libgdaex

Bugfix SqlBuilder: no table name if functions ::from* not called before others.
---

diff --git a/src/sqlbuilder.c b/src/sqlbuilder.c
index 3360b5c..9ac5314 100644
--- a/src/sqlbuilder.c
+++ b/src/sqlbuilder.c
@@ -143,7 +143,7 @@ static GdaExSqlBuilderField
 				}
 			else
 				{
-					f->alias = NULL;
+					f->alias = g_strdup ("");
 				}
 			g_hash_table_insert (table->ht_fields, g_strdup (field_name), f);
 		}
@@ -185,7 +185,7 @@ static GdaExSqlBuilderTable
 				}
 			else
 				{
-					t->alias = NULL;
+					t->alias = g_strdup ("");
 				}
 			t->ht_fields = g_hash_table_new (g_str_hash, g_str_equal);
 			g_hash_table_insert (priv->ht_tables, g_strdup (t->name), t);