[open-ils-commits] r8565 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Feb 1 09:48:18 EST 2008
Author: miker
Date: 2008-02-01 09:20:32 -0500 (Fri, 01 Feb 2008)
New Revision: 8565
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
subcolumn redux: need to wrap the function call in parens to delimit the subcolumn from the function
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-02-01 14:10:33 UTC (rev 8564)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-02-01 14:20:32 UTC (rev 8565)
@@ -1177,11 +1177,15 @@
}
if (transform_subcolumn) {
- buffer_fadd(
+ char * tmp = buffer_release(sql_buf);
+ sql_buf = buffer_init(32);
+ buffer_fadd(
sql_buf,
- ".\"%s\"",
- transform_subcolumn
+ "(%s).\"%s\"",
+ tmp,
+ transform_subcolum
);
+ free(tmp);
}
if (field_transform) free(field_transform);
More information about the open-ils-commits
mailing list