summaryrefslogtreecommitdiff
path: root/framework/DataAccess/TEzpdo.php
diff options
context:
space:
mode:
authorwei <>2006-07-28 00:02:13 +0000
committerwei <>2006-07-28 00:02:13 +0000
commitcaa348ceabba58447bf8deddb8c6316ff3dc88ce (patch)
treeccb2f2215f07be6ed1694c403f54ee75c005d397 /framework/DataAccess/TEzpdo.php
parent5c1132f6da292a689bc52bd7f20a83ff8d733fbd (diff)
Fixed nested GroupBy resultMap
Diffstat (limited to 'framework/DataAccess/TEzpdo.php')
-rw-r--r--framework/DataAccess/TEzpdo.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/framework/DataAccess/TEzpdo.php b/framework/DataAccess/TEzpdo.php
index de9d53fe..56065959 100644
--- a/framework/DataAccess/TEzpdo.php
+++ b/framework/DataAccess/TEzpdo.php
@@ -47,9 +47,14 @@ class TEzpdo extends TDatabaseProvider
if($this->getApplication()->getMode() != TApplication::STATE_PERFORMANCE)
{
if(!is_dir($path))
- throw new TConfigurationException('ezpdo_compile_dir_not_found', $path);
+ {
+ if(@mkdir($path)===false)
+ throw new TConfigurationException('ezpdo_compile_dir_not_found' . $path);
+ }
$this->_options['auto_compile'] = false;
}
+ if(!is_dir($path))
+ throw new TConfigurationException('ezpdo_missing_compile_dir', $path);
}
/**
@@ -68,7 +73,7 @@ class TEzpdo extends TDatabaseProvider
if(strlen($dsn = $this->getConnectionString()) > 0)
$options['default_dsn'] = $dsn;
else
- $options['default_dsn'] = $this->buildDsn();
+ $options['default_dsn'] = $this->buildConnectionString();
return array_merge($this->_options, $options);
}