If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > SQLPrimarykey in 64 bit gives wrong values in linux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-25-09, 01:54
bijayakumar bijayakumar is offline
Registered User
 
Join Date: May 2009
Posts: 1
SQLPrimarykey in 64 bit gives wrong values in linux

In x86_64 GNU/Linux machine i installed mysql-5.1.34-linux-x86_64-glibc23,
mysql-connector-odbc-5.1.5-linux-x86-64bit and unixOdbc as unixODBC-2.2.14.tar.gz.

I have created table as

create table t1(f1 int unique,f2 int,primary key(f2));

The odbc driver function SQLPrimarykey does not gives correct primary field name.

Again if the table is like create table t1(f1 int unique,f2 int);

then dbc driver function SQLPrimarykey driver function gives f1 as primary key.

Can someone tell me is it a bug or i have chosen wrong package or wrong way


bijaya
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On