Welcome Guest, Not a member yet? Register   Sign In
CI 1.7 - Forge Problems
#2

[eluser]AgentPhoenix[/eluser]
I've been trying to track this stuff down and think I have a lead on it. The problem seems to be starting in the MySQL Forge file, lines 157 and 158.

Code:
$primary_keys = $this->db->_protect_identifiers($primary_keys);
$sql .= ",\n\tPRIMARY KEY ".$key_name." (" . implode(', ', $primary_keys) . ")";

Line 157 is being fed an array, but _protect_identifiers doesn't know how to handle an array, it assumes it's a single item coming in. I tried adding some code similar to what's in add_key, but then it just returns a string called Array. Of course, line 158 is expecting an array because it tries to implode the variable. So it seems like the Forge has its wires crossed a little bit. I'm just not sure exactly how to fix it.


Messages In This Thread
CI 1.7 - Forge Problems - by El Forum - 10-24-2008, 09:19 AM
CI 1.7 - Forge Problems - by El Forum - 10-24-2008, 11:44 AM
CI 1.7 - Forge Problems - by El Forum - 10-24-2008, 01:12 PM
CI 1.7 - Forge Problems - by El Forum - 10-26-2008, 11:57 AM
CI 1.7 - Forge Problems - by El Forum - 11-02-2008, 08:52 PM
CI 1.7 - Forge Problems - by El Forum - 11-03-2008, 07:53 AM
CI 1.7 - Forge Problems - by El Forum - 11-03-2008, 04:08 PM
CI 1.7 - Forge Problems - by El Forum - 11-17-2008, 11:14 PM
CI 1.7 - Forge Problems - by El Forum - 11-17-2008, 11:24 PM
CI 1.7 - Forge Problems - by El Forum - 11-18-2008, 09:36 AM
CI 1.7 - Forge Problems - by El Forum - 11-18-2008, 09:39 AM
CI 1.7 - Forge Problems - by El Forum - 12-08-2008, 08:54 AM
CI 1.7 - Forge Problems - by El Forum - 12-09-2008, 07:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB