fixing select clause bug
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Aug 2006 13:59:39 +0000 (13:59 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Aug 2006 13:59:39 +0000 (13:59 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5586 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_cstore.c

index f1640b5..9feed5c 100644 (file)
@@ -1221,6 +1221,9 @@ jsonObject* doSearch(osrfMethodContext* ctx, osrfHash* meta, jsonObject* params,
                                buffer_fadd(sql_buf, " \"%s\".%s", cname, fname, cname, fname);
                        }
                }
+
+               if (first) buffer_add(sql_buf, " *");
+
        } else {
                buffer_add(sql_buf, " *");
        }