On 31/01/2012 01:30, Carlos R Laguna wrote:
wish i think is wear since is parsing stuff like this one

ERROR:  syntax error at or near "if"
LINE 1: if not, write to the Free Software Foundation, Inc.,

Could you try the attached patch and let us know how it goes?
>From ae6be5001123c96cf2490a37c6bb785f252116f8 Mon Sep 17 00:00:00 2001
From: Robert Anderson <[email protected]>
Date: Tue, 31 Jan 2012 09:04:37 +0000
Subject: [PATCH] Replace comment syntax for sqlite and psql

---
 database/convert-tsql |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/database/convert-tsql b/database/convert-tsql
index 51f8c92..dc363c0 100755
--- a/database/convert-tsql
+++ b/database/convert-tsql
@@ -100,7 +100,8 @@ case "$database" in
 			-e 's/@SERIAL_TYPE@/SERIAL PRIMARY KEY/' \
 			-e 's/@BIG_INTEGER@/INT8/' \
 			-e 's/@TRACK_KEY_LEN@/512/' \
-			-e 's/@SERIAL_REF_TYPE@/INT8/' < "$file"
+			-e 's/@SERIAL_REF_TYPE@/INT8/' \
+			-e 's/^#/--/' < "$file"
 		;;
 
 	"sqlite")
@@ -112,7 +113,8 @@ case "$database" in
 			-e 's/@SERIAL_TYPE@/INTEGER PRIMARY KEY AUTOINCREMENT/' \
 			-e 's/@BIG_INTEGER@/INT8/' \
 			-e 's/@TRACK_KEY_LEN@/512/' \
-			-e 's/@SERIAL_REF_TYPE@/INT8/' < "$file"
+			-e 's/@SERIAL_REF_TYPE@/INT8/' \
+			-e 's/^#/--/' < "$file"
 		;;
 
 	*)
-- 
1.7.3.4

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to