Welcome Guest, Not a member yet? Register   Sign In
DB PDO Query Error
#11

[eluser]RaGe10940[/eluser]
Check your config possibly?

you said "DB PDO Query Error "

I see you using active record.

try this maybe? :

Code:
$active_group = 'default';
$active_record = FALSE;

$db['default']['hostname'] = 'mysql:host=localhost';
$db['default']['username'] = 'db_user';
$db['default']['password'] = 'password';
$db['default']['database'] = 'db_table';
$db['default']['dbdriver'] = 'pdo';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;


and then just do a simple select or what have you....

I'm just going off your thread title. Good luck
#12

[eluser]xonorageous[/eluser]
Thanks for all your help TheFuzzyOne, it's much appreciated. I will notify the team about this bug.

@RaGe10940, thanks for the reply, that is more or less the config I've got, only I'm using an Oracle db so there are a few differences.
#13

[eluser]RaGe10940[/eluser]
No problem, however keep in mind your queries did not look like PDO. You have to properly call the PDO it is not $this->db->query

for a reference take a look at this thread :

http://ellislab.com/forums/viewthread/218455/

oh and dont forget to use result_array or result or just in general use the CI query helpers or result helpers the PDO fetch assoc and what no caused me a week of hell... be careful.

best of luck




Theme © iAndrew 2016 - Forum software by © MyBB