sql() without a field delimiter defaults to space instead of row delimiter
authorAri Johnson <ari@cobramush.org>
Tue, 20 Feb 2007 15:39:53 +0000 (15:39 +0000)
committerAri Johnson <ari@cobramush.org>
Tue, 20 Feb 2007 15:39:53 +0000 (15:39 +0000)
src/sql.c

index 562fb893ca8010800cb15b1e5ee7f99565f6659b..98fd7a6475a976d3b3901dd3d18714dd8f21bb73 100644 (file)
--- a/src/sql.c
+++ b/src/sql.c
@@ -248,7 +248,7 @@ FUNCTION(fun_sql)
   if (!delim_check(buff, bp, nargs, args, 2, &row_delim))
     return;
   if (nargs < 3)
-    field_delim = row_delim;
+    field_delim = ' ';
   else if (!delim_check(buff, bp, nargs, args, 3, &field_delim))
     return;