Changeset 3146
- Timestamp:
- 05/03/08 15:45:27 (2 months ago)
- Files:
-
- trunk/Solar/Sql/Adapter.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Solar/Sql/Adapter.php
r3138 r3146 235 235 */ 236 236 protected $_profiling = false; 237 238 /** 239 * 240 * A PDO-style DSN, for example, "mysql:host=127.0.0.1;dbname=test" 241 * 242 * @var string 243 * 244 */ 245 protected $_dsn; 237 246 238 247 /** … … 248 257 $this->_cache = Solar::dependency('Solar_Cache', $this->_config['cache']); 249 258 $this->setProfiling($this->_config['profiling']); 259 260 // build a DSN 261 $this->_dsn = $this->_dsn(); 262 263 // save the cache-key prefix 264 $this->_cache_key_prefix = get_class($this) . '/' . md5($this->_dsn); 250 265 } 251 266 … … 343 358 $before = microtime(true); 344 359 345 // build a DSN346 $dsn = $this->_dsn();347 348 // save the cache-key prefix349 $this->_cache_key_prefix = get_class($this) . '/' . md5($dsn);350 351 360 // attempt the connection 352 361 $this->_pdo = new PDO( 353 $ dsn,362 $this->_dsn, 354 363 $this->_config['user'], 355 364 $this->_config['pass']
