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 |
{ |
{ |
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 |