Changeset 2834 in subversion for trunk/roundcubemail/program/include/rcube_mdb2.php
- Timestamp:
- Aug 4, 2009 4:22:41 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/include/rcube_mdb2.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_mdb2.php
r2828 r2834 322 322 * For Postgres databases, a sequence name is required 323 323 * 324 * @param string Sequence name for increment324 * @param string Table name (to find the incremented sequence) 325 325 * @return mixed ID or FALSE on failure 326 326 * @access public 327 327 */ 328 function insert_id($ sequence = '')328 function insert_id($table = '') 329 329 { 330 330 if (!$this->db_handle || $this->db_mode=='r') 331 331 return FALSE; 332 332 333 $id = $this->db_handle->lastInsertID($sequence); 333 // find sequence name 334 if ($table && $this->db_provider == 'pgsql') 335 $table = get_sequence_name($table); 336 337 $id = $this->db_handle->lastInsertID($table); 334 338 335 339 return $this->db_handle->isError($id) ? null : $id;
Note: See TracChangeset
for help on using the changeset viewer.
