diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-04-04 20:56:04 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-04-04 20:56:04 +0200 |
commit | 3ad8efe07deb3ec27a205815dc9097c20c728e9b (patch) | |
tree | d2d699b7173505ef6ce317cd0856fa5b03e6aae1 /system/database/drivers | |
parent | 1ea127ae8a8026af7679526af06ff297d5104104 (diff) |
added constants.php file and implemented constants for file system modes
Diffstat (limited to 'system/database/drivers')
-rw-r--r-- | system/database/drivers/sqlite/sqlite_driver.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/sqlite/sqlite_driver.php b/system/database/drivers/sqlite/sqlite_driver.php index c859dea6e..16a8308c1 100644 --- a/system/database/drivers/sqlite/sqlite_driver.php +++ b/system/database/drivers/sqlite/sqlite_driver.php @@ -48,7 +48,7 @@ class CI_DB_sqlite_driver extends CI_DB { */
function db_connect()
{
- if ( ! $conn_id = @sqlite_open($this->database, 0666, $error))
+ if ( ! $conn_id = @sqlite_open($this->database, FILE_WRITE_MODE, $error))
{
log_message('error', $error);
@@ -73,7 +73,7 @@ class CI_DB_sqlite_driver extends CI_DB { */
function db_pconnect()
{
- if ( ! $conn_id = @sqlite_popen($this->database, 0666, $error))
+ if ( ! $conn_id = @sqlite_popen($this->database, FILE_WRITE_MODE, $error))
{
log_message('error', $error);
|