[open-ils-commits] r19804 - branches/rel_1_6_1/Open-ILS/src/c-apps (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 18 10:45:12 EDT 2011
Author: miker
Date: 2011-03-18 10:45:09 -0400 (Fri, 18 Mar 2011)
New Revision: 19804
Modified:
branches/rel_1_6_1/Open-ILS/src/c-apps/oils_cstore.c
Log:
Allow the "result_field" to be used as the default alias in the output column of a row or set returning transform
Modified: branches/rel_1_6_1/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- branches/rel_1_6_1/Open-ILS/src/c-apps/oils_cstore.c 2011-03-18 14:44:45 UTC (rev 19803)
+++ branches/rel_1_6_1/Open-ILS/src/c-apps/oils_cstore.c 2011-03-18 14:45:09 UTC (rev 19804)
@@ -3138,6 +3138,8 @@
const char* _alias;
if ((tmp_const = jsonObjectGetKeyConst( selfield, "alias" ))) {
_alias = jsonObjectGetString( tmp_const );
+ } else if ((tmp_const = jsonObjectGetKeyConst( selfield, "result_field" ))) { // Use result_field name as the alias
+ _alias = jsonObjectGetString( tmp_const );
} else { // Use field name as the alias
_alias = col_name;
}
More information about the open-ils-commits
mailing list