projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b23c80
)
Fix version number calculation.
author
Jan Schneider
<jan@horde.org>
Thu, 13 Aug 2009 19:09:07 +0000
(21:09 +0200)
committer
Jan Schneider
<jan@horde.org>
Thu, 13 Aug 2009 19:09:07 +0000
(21:09 +0200)
framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php
patch
|
blob
|
history
diff --git
a/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php
b/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php
index
063d6ce
..
c9f049c
100644
(file)
--- a/
framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php
+++ b/
framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php
@@
-658,7
+658,7
@@
class Horde_Db_Adapter_Postgresql_Schema extends Horde_Db_Adapter_Abstract_Schem
try {
$version = $this->selectValue('SELECT version()');
if (preg_match('/PostgreSQL (\d+)\.(\d+)\.(\d+)/', $version, $matches))
- return ($matches[1] * 10000)
. ($matches[2] * 100) .
$matches[3];
+ return ($matches[1] * 10000)
+ ($matches[2] * 100) +
$matches[3];
} catch (Exception $e) {}
return 0;