DA does not fetch autoinc primkey correctly

Version 10.0.0.1611

using SDAC

i have a simple select and when i create the fields it does not detect the primkey field and does not detect it’s an autoinc

which makes updating or deleting fail ofcourse…

what could cause this

Hi,

PK and AutoInc fields are detected for AutoSQL statement type only.

for SQL mode we can’t extract such information automatically and we can use only info what SDAC driver returns …

so this never worked for SQL mode?

Hi,

for AutoSQL mode we have table name so we can ask about this table in DB and extract additional info.

for SQL mode, you can have complex SQL so we pass it as is to TMSQuery …
TMSQuery doesn’t give any info about PK or AutoInc …

you can reproduce this with native TMSQuery w/o DAD.

not sure what disappoints me more, my memory or …