Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » Proble with primary key + unique
Proble with primary key + unique [message #1463] Mon, 14 July 2008 15:01 Go to previous message
bonzo_bcn is currently offline  bonzo_bcn
Messages: 152
Registered: June 2008
Senior Member
I found out that when importing this table to radicore and exporting to php:

CREATE TABLE IF NOT EXISTS `programa` (
	`programa_id` integer NOT NULL AUTO_INCREMENT,
	`entidad_id` integer NOT NULL ,
	`nombre` varchar(30) NOT NULL default '',

	PRIMARY KEY  (`programa_id`),
	UNIQUE KEY  (`entidad_id`,`nombre`),
	unique (`programa_id`)
) TYPE=MyISAM;


the .dict.inc file generated includes this code which gives an error:

    $this->unique_keys[]                    = array(,
                                                    'nombre');
 
Read Message
Read Message
Previous Topic: Fatal error: Cannot use string offset as an array in ...
Next Topic: Two fields not showing -Solved
Goto Forum:
  


Current Time: Tue May 28 14:42:51 EDT 2024

Total time taken to generate the page: 0.01425 seconds