Browse Source

[2968] Fix canonical schema generation to work with SQLite 3.7.17 output

Mukund Sivaraman 12 years ago
parent
commit
99d9be31ae
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/bin/dbutil/tests/dbutil_test.sh.in

+ 1 - 0
src/bin/dbutil/tests/dbutil_test.sh.in

@@ -141,6 +141,7 @@ get_schema() {
     copy_file $1 $db1
 
     db_schema=`sqlite3 $db1 '.schema' | \
+               sed -e ':a' -e 'N' -e '$!ba' -e 's/,[\ ]*\n/, /g' | sort | \
                awk '{line = line $0} END {print line}' | \
                sed -e 's/ //g' | \
                tr [:upper:] [:lower:]`