summaryrefslogtreecommitdiff
path: root/debian/sqliteconv2.pl
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2018-03-12 22:57:42 +0100
committerOlivier Gayot <duskcoder@gmail.com>2018-03-12 22:57:42 +0100
commita8c22829d8e8845cd4ddf4ef8b61a1ed79edfffc (patch)
treef0ae554b863266fbe523582d1be09216436c7472 /debian/sqliteconv2.pl
Imported from the SVN repository
http://svn.wolffelaar.nl/wsvn/phpbb/branches/jessie/ Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
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;
+}