Magellan Linux

Diff of /alx-src/tags/tinyalxconfig-ng-20090804-r1/functions/mysqlfunctions

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

revision 451 by niro, Thu Jun 5 18:04:41 2008 UTC revision 452 by niro, Thu Jun 5 18:10:45 2008 UTC
# Line 6  Line 6 
6  #  #
7  # Niels Rogalla <niro@magellan-linux.de>  # Niels Rogalla <niro@magellan-linux.de>
8  #  #
9  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/mysqlfunctions,v 1.4 2008-06-05 18:04:41 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/mysqlfunctions,v 1.5 2008-06-05 18:10:45 niro Exp $
10    
11  mysql_command()  mysql_command()
12  {  {
# Line 174  evaluate_tables() Line 174  evaluate_tables()
174   all_items=( $(mysqldo "select * from ${table} ${where_statement}") )   all_items=( $(mysqldo "select * from ${table} ${where_statement}") )
175    
176   # sanity check   # sanity check
177   if [[ ${#all_vars[*]} = ${#all_items[*]} ]]   if [[ ${#all_vars[*]} -ne ${#all_items[*]} ]]
178   then   then
179   echo "error: arrays does not match!"   echo "error: arrays does not match!"
180   fi   fi

Legend:
Removed from v.451  
changed lines
  Added in v.452