dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa2ac03
)
SMW also sends horrid statements containing DISTINCT and AS which suffer the same...
author
Daniel Friesen
<dantman@users.mediawiki.org>
Thu, 8 May 2008 11:03:03 +0000
(11:03 +0000)
committer
Daniel Friesen
<dantman@users.mediawiki.org>
Thu, 8 May 2008 11:03:03 +0000
(11:03 +0000)
includes/Database.php
patch
|
blob
|
history
diff --git
a/includes/Database.php
b/includes/Database.php
index
f2bb4ba
..
b702038
100644
(file)
--- a/
includes/Database.php
+++ b/
includes/Database.php
@@
-1380,7
+1380,7
@@
class Database {
# Note that we use a whitespace test rather than a \b test to avoid
# any remote case where a word like on may be inside of a table name
# surrounded by symbols which may be considered word breaks.
- if( preg_match( '/(^|\s)(
JOIN|ON
)(\s|$)/i', $name ) !== 0 ) return $name;
+ if( preg_match( '/(^|\s)(
DISTINCT|JOIN|ON|AS
)(\s|$)/i', $name ) !== 0 ) return $name;
# Split database and table into proper variables.
# We reverse the explode so that database.table and table both output