mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
Ch-ch-ch-changes
- Made us more DB independent by making many queries capability based instead of DB specific - Finished PHP5ifying of the acm_file class, now with some (hopefully) enhancements to its performance - Sped up viewforum considerably (also goes towards mcp_forum) I really hope I didn't explode CVS... git-svn-id: file:///svn/phpbb/trunk@8301 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -25,6 +25,12 @@ include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx);
|
||||
*/
|
||||
class dbal_sqlite extends dbal
|
||||
{
|
||||
// like MS ACCESS, SQLite does not support COUNT(DISTINCT ...)
|
||||
var $count_distinct = false;
|
||||
|
||||
// can't truncate a table
|
||||
var $truncate = false;
|
||||
|
||||
/**
|
||||
* Connect to server
|
||||
*/
|
||||
@@ -257,6 +263,20 @@ class dbal_sqlite extends dbal
|
||||
return 'GLOB \'' . $this->sql_escape($expression) . '\'';
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose a DBMS specific function
|
||||
*/
|
||||
function sql_function($type, $col)
|
||||
{
|
||||
switch ($type)
|
||||
{
|
||||
case 'length_varchar':
|
||||
case 'length_text':
|
||||
return 'LENGTH(' . $col . ')';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* return sql error array
|
||||
* @access private
|
||||
|
Reference in New Issue
Block a user