~knielsen/ourdelta/bug_484127_484120_2

« back to all changes in this revision

Viewing changes to bakery/debian-5.0/additions/debian-start.inc.sh

  • Committer: Arjen Lentz
  • Date: 2009-10-01 11:15:22 UTC
  • mfrom: (54.1.31 ourdelta-5.0.86)
  • Revision ID: arjen@openquery.com-20091001111522-3qbkgich9qfmzhyo
Tags: mysql-5.0.86-d9
Merge from ourdelta-5.0.86 work tree, preparing 5.0.86-d9 ourdelta build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
  tempfile=`tempfile`
19
19
  # We have to use xargs in this case, because a for loop barfs on the 
20
20
  # spaces in the thing to be looped over. 
21
 
  LC_ALL=C $MYSQL --skip-column-names --batch -e  '
22
 
      select concat("select count(*) into @discard from `",
23
 
                    TABLE_SCHEMA, "`.`", TABLE_NAME, "`") 
24
 
      from information_schema.TABLES where ENGINE="MyISAM"' | \
 
21
  LC_ALL=C $MYSQL --skip-column-names --batch -e  "
 
22
      SELECT CONCAT('SELECT COUNT(*) INTO @discard FROM \`',
 
23
                    TABLE_SCHEMA, '\`.\`', TABLE_NAME, '\`' )
 
24
      FROM information_schema.TABLES WHERE ENGINE='MyISAM'" | \
25
25
    xargs -i $MYSQL --skip-column-names --silent --batch \
26
26
                    --force -e "{}" >$tempfile 
27
27
  if [ -s $tempfile ]; then