]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2968] Fix canonical schema generation to work with SQLite 3.7.17 output
authorMukund Sivaraman <muks@isc.org>
Thu, 6 Jun 2013 11:29:32 +0000 (16:59 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 6 Jun 2013 11:29:32 +0000 (16:59 +0530)
src/bin/dbutil/tests/dbutil_test.sh.in

index f14c5641be3c1389071f40f663594793636527b7..183485bf0fe604c64afac5f33fe2116af33fb58e 100755 (executable)
@@ -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:]`