diff --git a/libgda/gda-statement.c b/libgda/gda-statement.c
index 71a7d20..ce74511 100644
--- a/libgda/gda-statement.c
+++ b/libgda/gda-statement.c
@@ -1946,7 +1946,7 @@ default_render_select_field (GdaSqlSelectField *field, GdaSqlRenderingContext *c
 	g_free (str);
 
 	if (field->as)
-		g_string_append_printf (string, " AS %s", field->as);
+		g_string_append_printf (string, " AS %s", gda_sql_identifier_force_quotes (field->as));
 
 	str = string->str;
 	g_string_free (string, FALSE);
@@ -1987,7 +1987,7 @@ default_render_select_target (GdaSqlSelectTarget *target, GdaSqlRenderingContext
 	}
 
 	if (target->as)
-		g_string_append_printf (string, " AS %s", target->as);
+		g_string_append_printf (string, " AS %s", gda_sql_identifier_force_quotes (target->as));
 
 	str = string->str;
 	g_string_free (string, FALSE);
