Changeset 2708
- Timestamp:
- 05/28/2008 05:31:26 PM (6 months ago)
- Location:
- trunk/system/libraries/drivers/Database
- Files:
-
- 4 modified
-
Mssql.php (modified) (3 diffs)
-
Mysqli.php (modified) (3 diffs)
-
Pdosqlite.php (modified) (3 diffs)
-
Pgsql.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/drivers/Database/Mssql.php
r2593 r2708 393 393 if ($this->fetch_type == 'mssql_fetch_object') 394 394 { 395 $this->return_type = class_exists($type, FALSE) ? $type : 'stdClass';395 $this->return_type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 396 396 } 397 397 else … … 424 424 // NOTE - The class set by $type must be defined before fetching the result, 425 425 // autoloading is disabled to save a lot of stupid overhead. 426 $type = class_exists($type, FALSE) ? $type : 'stdClass';426 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 427 427 } 428 428 else … … 438 438 if ($fetch == 'mssql_fetch_object') 439 439 { 440 $type = class_exists($type, FALSE) ? $type : 'stdClass';440 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 441 441 } 442 442 } -
trunk/system/libraries/drivers/Database/Mysqli.php
r2232 r2708 227 227 if ($this->fetch_type == 'fetch_object') 228 228 { 229 $this->return_type = class_exists($type, FALSE) ? $type : 'stdClass';229 $this->return_type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 230 230 } 231 231 else … … 258 258 // NOTE - The class set by $type must be defined before fetching the result, 259 259 // autoloading is disabled to save a lot of stupid overhead. 260 $type = class_exists($type, FALSE) ? $type : 'stdClass';260 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 261 261 } 262 262 else … … 272 272 if ($fetch == 'fetch_object') 273 273 { 274 $type = class_exists($type, FALSE) ? $type : 'stdClass';274 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 275 275 } 276 276 } -
trunk/system/libraries/drivers/Database/Pdosqlite.php
r2593 r2708 386 386 if ($this->fetch_type == PDO::FETCH_OBJ) 387 387 { 388 $this->return_type = class_exists($type, FALSE) ? $type : 'stdClass';388 $this->return_type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 389 389 } 390 390 else … … 416 416 // NOTE - The class set by $type must be defined before fetching the result, 417 417 // autoloading is disabled to save a lot of stupid overhead. 418 $type = class_exists($type, FALSE) ? $type : 'stdClass';418 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 419 419 } 420 420 else … … 430 430 if ($fetch == PDO::FETCH_OBJ) 431 431 { 432 $type = class_exists($type, FALSE) ? $type : 'stdClass';432 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 433 433 } 434 434 } -
trunk/system/libraries/drivers/Database/Pgsql.php
r2593 r2708 396 396 if ($this->fetch_type == 'pg_fetch_object') 397 397 { 398 $this->return_type = class_exists($type, FALSE) ? $type : 'stdClass';398 $this->return_type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 399 399 } 400 400 else … … 427 427 // NOTE - The class set by $type must be defined before fetching the result, 428 428 // autoloading is disabled to save a lot of stupid overhead. 429 $type = class_exists($type, FALSE) ? $type : 'stdClass';429 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 430 430 } 431 431 else … … 441 441 if ($fetch == 'pg_fetch_object') 442 442 { 443 $type = class_exists($type, FALSE) ? $type : 'stdClass';443 $type = (is_string($type) AND Kohana::auto_load($type)) ? $type : 'stdClass'; 444 444 } 445 445 }
