summaryrefslogtreecommitdiff
path: root/debian/sqliteconv2.pl
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sqliteconv2.pl')
-rwxr-xr-xdebian/sqliteconv2.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/sqliteconv2.pl b/debian/sqliteconv2.pl
new file mode 100755
index 0000000..34b2fa2
--- /dev/null
+++ b/debian/sqliteconv2.pl
@@ -0,0 +1,8 @@
+#!/usr/bin/perl
+# converts extended SQL inserts to single statements
+if (/^(INSERT.+?VALUES.*?)\(/) {
+ $a=$1;
+ s/\\'\''/'\'\''/g;
+ s/\\n/\n/g;
+ s/\),\(/\);\n$a\(/g;
+}