second column is not a unique VARCHAR

thread: 2 messages  |  last: a year ago  |  started: thursday, april 8, 2010, 3:36 am pdt


#1  |  phpcoder India
Thursday, April 8, 2010, 3:36 AM PDT

When I am trying to run code I am getting following error,


The following errors were reported:

TypeTable service_type's second column is not a unique VARCHAR.
TypeTable provider_type's second column is not a unique VARCHAR.

I am using MS SqlServer and tables details are

table name = service_type

Column Name          Data Type          Allow Null
-----------------------------------------------------
service_type_id      BIGINT             NO  -->Primary Key
description          VARCHAR(255)       NO
value                VARCHAR(50)        YES

-------------------------------------------------------------

table name = provider_type

Column Name          Data Type          Allow Null
-----------------------------------------------------
type_id              BIGINT             NO  -->Primary Key
description          VARCHAR(255)       NO
c_id                 BIGINT             NO
value                VARCHAR(50)        YES
----------------------------------------------------



I have more then 30 tables in database with similar column details but error is displaying only for above two tables only

any input ?

#2  |  Zbyszek Czarnecki (Warsaw, PL) Poland
Thursday, April 8, 2010, 5:46 AM PDT

Tables with _type suffix are treated differently by qcodo:

http://examples.qcodo.com/examples/more_codegen/type_tables.php

You can change suffix that triggers this behaviour in codegen.xml (_type is default).



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