[open-ils-commits] r8014 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 5 19:55:46 EST 2007
Author: miker
Date: 2007-11-05 19:40:17 -0500 (Mon, 05 Nov 2007)
New Revision: 8014
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
need to make sure the resultset field name matches the table field name
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2007-11-06 00:31:53 UTC (rev 8013)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2007-11-06 00:40:17 UTC (rev 8014)
@@ -2098,7 +2098,7 @@
char* pkey = osrfHashGet(idlClass, "primarykey");
char* tname = osrfHashGet(idlClass, "tablename");
- buffer_fadd(select_buf, " COALESCE( oils_i18n_xlate('%s.%s', \"%s\".%s::TEXT, '%s'), \"%s\".%s )", tname, fname, cname, pkey, locale, cname, fname);
+ buffer_fadd(select_buf, " COALESCE( oils_i18n_xlate('%s.%s', \"%s\".%s::TEXT, '%s'), \"%s\".%s ) AS %s", tname, fname, cname, pkey, locale, cname, fname, fname);
} else {
buffer_fadd(select_buf, " \"%s\".%s", cname, fname);
}
More information about the open-ils-commits
mailing list