Invalid key definition

thread: 2 messages  |  last: about 10 months ago  |  started: wednesday, april 8, 2009, 1:59 pm pdt


#1  |  jereminoz (France) France
Wednesday, April 8, 2009, 1:59 PM PDT

Hi there,
I installed succefully Qcodo but when I launch the codegen, this happens :

Invalid Key Definition: `idPdt`,
Exception Type:   Exception

Source File:   C:\wamp\www\qcodo\includes\qcodo\_core\database\QMySqliDatabase.class.php     Line:   243

Line 238:                    throw new Exception(“Invalid Key Definition: $strKeyDefinition”);
Line 239:                $strKeyDefinition = trim(substr($strKeyDefinition, $intPosition + 1));
Line 240:    
Line 241:                $intPosition = strpos($strKeyDefinition, ')');
Line 242:                if ($intPosition === false)
Line 243:                    throw new Exception(“Invalid Key Definition: $strKeyDefinition”);
Line 244:                $strKeyDefinition = trim(substr($strKeyDefinition, 0, $intPosition));
Line 245:    
Line 246:                // Create the Array
Line 247:                // TODO: Current method doesn't support key names with commas or parenthesis in them!
Line 248:                $strToReturn = explode(',', $strKeyDefinition);


Do you have any idea wht's wrong ?
Tks

#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Monday, October 19, 2009, 9:46 PM PDT

Do you know which table in your database is using the idpdt key?

If so, perhaps you can post your “show create table TABLENAME” code from mysql here.



Copyright © 2005 - 2010, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.