Home > Article > Backend Development > pdo operation makes sqlite compatible with more sql statements.
Add sqlite custom function to make it compatible with more sql statement operations. if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'sqlite') {
$db->sqliteCreateFunction('concat', create_function('',"return implode(func_get_args()) ;"));
|