[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-1/datakiosk/src
From: Adam Treat <manyoso () yahoo ! com>
Date: 2005-04-30 20:49:05
Message-ID: 20050430204905.7786A665 () office ! kde ! org
[Download RAW message or body]
CVS commit by treat:
* Don't assume that a field marked as a primary key is unique. The primary key
itself must be unique, but they can be composed of multiple fields.
M +2 -7 sqlformwizardimpl.cpp 1.17
--- kdeextragear-1/datakiosk/src/sqlformwizardimpl.cpp #1.16:1.17
@@ -256,16 +256,11 @@ void SqlFormWizard::childKeyActivated( c
m_list->setForeignKey( s );
- bool unique = false;
- DataField *f = m_list->dataField( s );
- if ( f )
- unique = f->primary();
-
comboChildRelation->clear();
comboChildRelation->setEnabled( TRUE );
comboChildRelation->insertItem( "<select relationship>" );
comboChildRelation->insertItem( "one-to-one" );
- if ( !unique ) comboChildRelation->insertItem( "one-to-many" );
+ comboChildRelation->insertItem( "one-to-many" );
comboChildRelation->insertItem( "many-to-one" );
- if ( !unique ) comboChildRelation->insertItem( "many-to-many" );
+ comboChildRelation->insertItem( "many-to-many" );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic