Changeset 4967


Ignore:
Timestamp:
02/26/10 21:10:51 (10 years ago)
Author:
nikrou
Message:

Feature 1459 : add support for SQLite3 via PDO

Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_install.inc.php

    r4410 r4967  
    8888  { 
    8989    if (file_exists(sprintf($pattern, $engine_name))  
     90        && isset($engine['function_available']) 
    9091        && function_exists($engine['function_available'])) 
     92    { 
     93      $engines[$engine_name] = $engine['engine']; 
     94    } 
     95    elseif (file_exists(sprintf($pattern, $engine_name))  
     96            && isset($engine['class_available']) 
     97            && class_exists($engine['class_available'])) 
    9198    { 
    9299      $engines[$engine_name] = $engine['engine']; 
  • trunk/include/dblayer/dblayers.inc.php

    r4781 r4967  
    3434                            'function_available' => 'sqlite_open' 
    3535                            ); 
     36 
     37$dblayers['pdo-sqlite'] = array('engine' => 'PDO::SQLite', 
     38                                'class_available' => 'PDO' 
     39                                ); 
     40 
    3641?> 
Note: See TracChangeset for help on using the changeset viewer.