From caa348ceabba58447bf8deddb8c6316ff3dc88ce Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 28 Jul 2006 00:02:13 +0000 Subject: Fixed nested GroupBy resultMap --- framework/DataAccess/TEzpdo.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'framework/DataAccess/TEzpdo.php') 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); } -- cgit v1.2.3