From: andersen@modelcreator <andersen@modelcreator.com>
To: pgsql-odbc@postgresql.org
Subject: Serial
Date: Tue, 26 Apr 2005 12:26:24 +0200
Message-ID: <001301c54a4a$78050f40$0301a8c0@modelcreator1> (raw)
Hello,
I don't know how to retrieve information via ODBC about the type "SERIAL". When creating a table with a column having this type it is changed into an int4 with a default value to a sequence as I understood it.
I can retrieve information about the type int4 and other attributes but I don't see how I can retrieve information about the sequencing.
I tried to use the following:
SQLColAttributes with attribute: SQL_COLUMN_AUTO_INCREMENT
SQLColAttribute with attribute: SQL_DESC_AUTO_UNIQUE_VALUE
SQLColumns has the default value empty (index 13).
Do you I have to query system tables to get this information?
Any comments?
Thanks,
Henning
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: andersen@modelcreator.com
Subject: Re: Serial
In-Reply-To: <001301c54a4a$78050f40$0301a8c0@modelcreator1>
References: <001301c54a4a$78050f40$0301a8c0@modelcreator1>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox