summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-18 21:17:36 +0000
committeralecpl <alec@alec.pl>2008-10-18 21:17:36 +0000
commit8e2a5a76d187d813a48a754df3c0bf30f60f16c8 (patch)
tree7dd8ad33caa641be04ca1fc9f6cbe9596a7c7846 /program
parent03be2b97c4ba8b825d602e7d66d84ff879cdda69 (diff)
#1485504: applied two patches from MDB2's repository
Diffstat (limited to 'program')
-rw-r--r--program/lib/MDB2.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/lib/MDB2.php b/program/lib/MDB2.php
index 7e4732266..776554182 100644
--- a/program/lib/MDB2.php
+++ b/program/lib/MDB2.php
@@ -2915,9 +2915,9 @@ class MDB2_Driver_Common extends PEAR
$colon = ':';
$positions = array();
$position = 0;
- $ignores = $this->sql_comments;
- $ignores[] = $this->string_quoting;
+ $ignores = $this->string_quoting;
$ignores[] = $this->identifier_quoting;
+ $ignores[] = $this->sql_comments;
while ($position < strlen($query)) {
$q_position = strpos($query, $question, $position);
$c_position = strpos($query, $colon, $position);
@@ -3148,7 +3148,7 @@ class MDB2_Driver_Common extends PEAR
function getSequenceName($sqn)
{
return sprintf($this->options['seqname_format'],
- preg_replace('/[^a-z0-9_\$.]/i', '_', $sqn));
+ preg_replace('/[^a-z0-9_\-\$.]/i', '_', $sqn));
}
// }}}