[eluser]dexcell[/eluser]
[quote author="RHAngel" date="1228171275"]Oh, it is my fault. To use separate database we need to return connection in separate object. Like in example:
Code:
$DB1 = $this->load->database('group_one', TRUE);
So, I'm sorry.
By the way. Library is not compatible with PostgreSQL when you use quotes in table names or fields, because of plain SQL in models. To use this library with PostgreSQL you guys need to rewrite all plain SQL in models like:
Code:
$sql = "SELECT $u_table.*,
$r_table.name AS role_name
FROM $u_table
JOIN $r_table ON $r_table.role_id = $u_table.role_id
ORDER BY $u_table.user_id ASC";
to
Code:
$sql = "SELECT \"$u_table\".*,
\"$r_table\".\"name\" AS \"role_name\"
FROM \"$u_table\"
JOIN \"$r_table\" ON \"$r_table\".\"role_id\" = \"$u_table\".\"role_id\"
ORDER BY \"$u_table\".\"user_id\" ASC";
dexcell maybe you can rewrite all queries to active record? 8) Or may be I can help you.[/quote]
Thank you, if you don't mind please help me

two brains is better than one, of course.
But i have to sleep now because it's already late midnight in here

Of course, i will give credit to you in source code and user guide
Yes, i was planning to write it whole model in AR, but some bug and some limitation of CI AR like using UPPER(table_name) is not possible (maybe my mistake?).
Btw, just curious is there a way to check if database using PostgreSQL or mySQL in CI? maybe if some code cannot be converted into AR we can use this function to check.