mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 14:48:53 +00:00
SQLite support (DB2 must wait until i get a new DB2 extensions. :/)
git-svn-id: file:///svn/phpbb/trunk@9290 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d61459fce3
commit
121116cae3
1 changed files with 1 additions and 11 deletions
|
@ -250,20 +250,10 @@ class phpbb_dbal_sqlite extends phpbb_dbal
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle data by using prepared statements. See {@link phpbb_dbal::sql_handle_data() sql_handle_data()} for details.
|
* Handle data by using prepared statements. See {@link phpbb_dbal::sql_handle_data() sql_handle_data()} for details.
|
||||||
* @todo implement correctly by using types. ;)
|
|
||||||
*/
|
|
||||||
public function sql_handle_data($type, $table, $data, $where = '')
|
public function sql_handle_data($type, $table, $data, $where = '')
|
||||||
{
|
{
|
||||||
if ($type === 'UPDATE')
|
|
||||||
{
|
|
||||||
$where = ($where) ? ' WHERE ' . $where : '';
|
|
||||||
$this->sql_query('UPDATE ' . $table . ' SET ' . $db->sql_build_array('UPDATE', $data) . $where);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->sql_query('INSERT INTO ' . $table . ' ' . $this->sql_build_array('INSERT', $data));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build DB-specific query bits. See {@link phpbb_dbal::_sql_custom_build() _sql_custom_build()} for details.
|
* Build DB-specific query bits. See {@link phpbb_dbal::_sql_custom_build() _sql_custom_build()} for details.
|
||||||
|
|
Loading…
Add table
Reference in a new issue