Skip to content

Commit

Permalink
Minor changes on the pull bcit-ci#1355 additions
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed May 15, 2012
1 parent caa9c7c commit 242925b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions system/database/drivers/postgre/postgre_driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public function escape($str)

return parent::escape($str);
}

// --------------------------------------------------------------------

/**
Expand Down Expand Up @@ -623,7 +623,7 @@ protected function _where($key, $value = NULL, $type = 'AND ', $escape = NULL)
}
elseif (is_bool($v))
{
$v = ' '.($v ? 'TRUE' : 'FALSE');
$v = ($v ? ' TRUE' : ' FALSE');
}

if ( ! $this->_has_operator($k))
Expand All @@ -647,7 +647,7 @@ protected function _where($key, $value = NULL, $type = 'AND ', $escape = NULL)

return $this;
}

// --------------------------------------------------------------------

/**
Expand All @@ -664,4 +664,4 @@ protected function _close($conn_id)
}

/* End of file postgre_driver.php */
/* Location: ./system/database/drivers/postgre/postgre_driver.php */
/* Location: ./system/database/drivers/postgre/postgre_driver.php */
2 changes: 1 addition & 1 deletion user_guide_src/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Release Date: Not Released
- pg_version() is now used to get the database version number, when possible.
- Added db_set_charset() support.
- Added _optimize_table() support for the :doc:`Database Utility Class <database/utilities>` (rebuilds table indexes).
- Added boolean data type support in escape().
- Added a constructor to the DB_result class and moved all driver-specific properties and logic out of the base DB_driver class to allow better abstraction.
- Removed limit() and order_by() support for UPDATE and DELETE queries in PostgreSQL driver. Postgres does not support those features.
- Removed protect_identifiers() and renamed internal method _protect_identifiers() to it instead - it was just an alias.
Expand All @@ -100,7 +101,6 @@ Release Date: Not Released
- Added PDO support for create_database(), drop_database and drop_table() in :doc:`Database Forge <database/forge>`.
- Added MSSQL, SQLSRV support for optimize_table() in :doc:`Database Utility <database/utilities>`.
- Improved CUBRID support for list_databases() in :doc:`Database Utility <database/utilities>` (until now only the currently used database was returned).
- Added escaping boolean data type for PosgreSQL

- Libraries

Expand Down

0 comments on commit 242925b

Please sign in to comment.