Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/include/mysqlfunctions.global.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2875 by niro, Thu Sep 10 13:45:02 2015 UTC revision 2876 by niro, Fri Aug 14 11:32:38 2020 UTC
# Line 195  evaluate_table_xml() Line 195  evaluate_table_xml()
195   where_statement="$2"   where_statement="$2"
196   fi   fi
197    
198   export eval $(mysql \   eval $(mysql \
199   --user="${MCORE_SQL_USER}" \   --user="${MCORE_SQL_USER}" \
200   --password="${MCORE_SQL_PASS}" \   --password="${MCORE_SQL_PASS}" \
201   --host="${MCORE_SQL_HOST}" \   --host="${MCORE_SQL_HOST}" \
# Line 203  evaluate_table_xml() Line 203  evaluate_table_xml()
203   --xml \   --xml \
204   --execute="select * from ${table} ${where_statement}" \   --execute="select * from ${table} ${where_statement}" \
205   | xml sel -T -t -m //row/field \   | xml sel -T -t -m //row/field \
206   -v "concat('${table}_',@name,'=',self::field)" -n)   -v "concat('${table}_',@name,'=','\"',self::field,'\"')" -n)
207  }  }
208    
209  mysql_insert()  mysql_insert()

Legend:
Removed from v.2875  
changed lines
  Added in v.2876