2012-03-25 Junichi Satoh <junichi@rworks.jp>
* include/db/postgresql.php: Fixed bad syntax for WHERE clause in postgresql_db_format_array_where_clause_sql(). * include/functions_config.php: Back to previous version, because fixed bad sql in include/db/postgresql.php. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5829 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e4ac6834b6
commit
1d3442f6cd
|
@ -1,3 +1,11 @@
|
|||
2012-03-25 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* include/db/postgresql.php: Fixed bad syntax for WHERE clause in
|
||||
postgresql_db_format_array_where_clause_sql().
|
||||
|
||||
* include/functions_config.php: Back to previous version, because
|
||||
fixed bad sql in include/db/postgresql.php.
|
||||
|
||||
2012-03-24 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* include/db/postgresql.php: Fixed SQL error with PostgreSQL.
|
||||
|
|
|
@ -540,7 +540,7 @@ function postgresql_db_format_array_where_clause_sql ($values, $join = 'AND', $p
|
|||
foreach ($values as $field => $value) {
|
||||
if (is_numeric ($field)) {
|
||||
/* User provide the exact operation to do */
|
||||
$query .= $value;
|
||||
$query .= sprintf ("%s = %d", $field, $value);
|
||||
|
||||
if ($i < $max) {
|
||||
$query .= ' '.$join.' ';
|
||||
|
|
|
@ -677,7 +677,7 @@ function config_check (){
|
|||
$now = date("U");
|
||||
|
||||
// First action in order to know if it's a new installation or db maintenance never have been executed
|
||||
$first_action = db_get_value_filter('utimestamp', 'tsesion', array('1' => 'true', 'order' => 'id_sesion ASC'));
|
||||
$first_action = db_get_value_filter('utimestamp', 'tsesion', array('1' => '1', 'order' => 'id_sesion ASC'));
|
||||
$fresh_installation = $now - $first_action;
|
||||
|
||||
$resta = $now - $db_maintance;
|
||||
|
|
Loading…
Reference in New Issue