aboutsummaryrefslogtreecommitdiff
path: root/editors/calligra/files/patch-kspread-dialogs-kspread_dlg_database.cc
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2005-07-05 20:55:18 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2005-07-05 20:55:18 +0000
commit8166ce463f140bec9e8d7cbdeb2ab802fcf5cffb (patch)
tree083c9db380a1eae07c1bd46e5b53288e19e9c637 /editors/calligra/files/patch-kspread-dialogs-kspread_dlg_database.cc
parent3cf5b1eda5d897d1aa1aca58468ae7052add9c04 (diff)
downloadports-8166ce463f140bec9e8d7cbdeb2ab802fcf5cffb.tar.gz
ports-8166ce463f140bec9e8d7cbdeb2ab802fcf5cffb.zip
Notes
Diffstat (limited to 'editors/calligra/files/patch-kspread-dialogs-kspread_dlg_database.cc')
-rw-r--r--editors/calligra/files/patch-kspread-dialogs-kspread_dlg_database.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/editors/calligra/files/patch-kspread-dialogs-kspread_dlg_database.cc b/editors/calligra/files/patch-kspread-dialogs-kspread_dlg_database.cc
new file mode 100644
index 000000000000..0f733f0e891f
--- /dev/null
+++ b/editors/calligra/files/patch-kspread-dialogs-kspread_dlg_database.cc
@@ -0,0 +1,13 @@
+--- kspread/dialogs/kspread_dlg_database.cc.orig Tue Jun 28 03:42:22 2005
++++ kspread/dialogs/kspread_dlg_database.cc Tue Jun 28 03:48:20 2005
+@@ -600,8 +600,8 @@
+ // An update command must also be followed by a space, or it would be parsed
+ // as an identifier.
+ // For sanity, also check that there is a SELECT
+- QRegExp couldModifyDB( "(^|[( \s])(UPDATE|DELETE|INSERT|CREATE) ", false /* cs */ );
+- QRegExp couldQueryDB( "(^|[( \s])(SELECT) ", false /* cs */ );
++ QRegExp couldModifyDB( "(^|[( \\s])(UPDATE|DELETE|INSERT|CREATE) ", false /* cs */ );
++ QRegExp couldQueryDB( "(^|[( \\s])(SELECT) ", false /* cs */ );
+
+ if (couldModifyDB.search( queryStr ) != -1 || couldQueryDB.search ( queryStr ) == -1 )
+ {