I had the same problem on Delphi 4 using TQuery. Although the table is
uniquely indexed Delphi (BDE) would continue to report that it is not. I
fought with this for sometime and after finding something in the Help files
for TQuery (or TDataSet rather) I came to the impression that the Refresh
method could not be used using the MyODBC driver. I never did find a 100%
answer...
Unfortunately I do not recall where I read it...;(
Might want to look at the Delphi Q&A on Borlands site...or around there
also...
> my mistake, I think this may be more approporiate :
>
> ALTER TABLE' syntax:
>
> ADD UNIQUE [index_name] (index_col_name,...)
>
>
> -----Original Message-----
> From: Michael Farr <farrm@stripped>
> To: MySQL <mysql@stripped>
> Date: Saturday, May 29, 1999 7:44 PM
> Subject: TQuery
>
>
> >I am using Borland Builder 4.0 to build a windows application that uses a
> >MySQL database though the MyODBC connection. When I try to execute a
> >refresh method of a TQuery (iepersonQ->refresh(), I get a message saying
> >that "Table does not support this operation because it is not uniquely
> >indexed.". What does "uniquely indexed" mean in this context, it cant be
> >referring to the database because I set the first column to primary key
> >here is the explain text
> >
> >mysql> explain Patient;
>
>+-----------------------+------------+------+-----+---------+--------------
> --+
> >
> >| Field | Type | Null | Key | Default |
> >Extra |
>
>+-----------------------+------------+------+-----+---------+--------------
> --+
> >
> >| patientId | int(11) | | PRI | 0
|auto_increment
> |
> >| title | char(4) | YES | | NULL|
|
> >| familyName | char(20) | YES | | NULL|
|
> >| firstName | char(20) | YES | | NULL|
|
> >| middleName | char(20) | YES | | NULL|
|
> >
> >Is there something I can do to make this table more uniquely indexed, or
> >has someone got another idea?
> >
> >
> >
> >---------------------------------------------------------------------
> >Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> >posting. To request this thread, e-mail mysql-thread4154@stripped
> >
> >To unsubscribe, send a message to the address shown in the
> >List-Unsubscribe header of this message. If you cannot see it,
> >e-mail mysql-unsubscribe@stripped instead.
> >
>
>
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail mysql-thread4233@stripped
>
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail mysql-unsubscribe@stripped instead.
>
>