Fix version number calculation.
authorJan Schneider <jan@horde.org>
Thu, 13 Aug 2009 19:09:07 +0000 (21:09 +0200)
committerJan Schneider <jan@horde.org>
Thu, 13 Aug 2009 19:09:07 +0000 (21:09 +0200)
framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php

index 063d6ce..c9f049c 100644 (file)
@@ -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;