From: Mukund Sivaraman Date: Thu, 6 Jun 2013 11:29:32 +0000 (+0530) Subject: [2968] Fix canonical schema generation to work with SQLite 3.7.17 output X-Git-Tag: bind10-1.2.0beta1-release~418^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99d9be31ae3323ee9f539b01bc74f3797d968e3b;p=thirdparty%2Fkea.git [2968] Fix canonical schema generation to work with SQLite 3.7.17 output --- diff --git a/src/bin/dbutil/tests/dbutil_test.sh.in b/src/bin/dbutil/tests/dbutil_test.sh.in index f14c5641be..183485bf0f 100755 --- a/src/bin/dbutil/tests/dbutil_test.sh.in +++ b/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:]`