X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 225D853E93 for ; Tue, 26 Apr 2005 07:27:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48691-03 for ; Tue, 26 Apr 2005 10:27:18 +0000 (GMT) Received: from ds7.enavn.org (ds7.enavn.org [193.201.35.47]) by svr1.postgresql.org (Postfix) with ESMTP id 4BE2B5380B for ; Tue, 26 Apr 2005 07:27:11 -0300 (ADT) Received: from modelcreator1 (213.237.119.210.adsl.rg.worldonline.dk [213.237.119.210]) by ds7.enavn.org (8.9.3p2/8.9.3) with SMTP id MAA09731 for ; Tue, 26 Apr 2005 12:26:55 +0200 Message-ID: <001301c54a4a$78050f40$0301a8c0@modelcreator1> From: "andersen@modelcreator" To: Subject: Serial Date: Tue, 26 Apr 2005 12:26:24 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0010_01C54A5B.297A2FC0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Spampost.com-Information: Please contact the ISP for more information X-Spampost.com-Virusscanner: Found to be clean X-Spampost.com-From: andersen@modelcreator.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.028 tagged_above=0 required=5 tests=HTML_60_70, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200504/78 X-Sequence-Number: 5237 This is a multi-part message in MIME format. ------=_NextPart_000_0010_01C54A5B.297A2FC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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?=20 Any comments? Thanks, Henning ------=_NextPart_000_0010_01C54A5B.297A2FC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
I don't know how to retrieve = information via ODBC=20 about the type "SERIAL". When creating a table with a column having this = type it=20 is changed into an int4 with a default value to a sequence as I = understood=20 it.
I can retrieve information about the = type int4 and=20 other attributes but I don't see how I can retrieve information about = the=20 sequencing.
 
I tried to use the = following:
SQLColAttributes with attribute:=20 SQL_COLUMN_AUTO_INCREMENT
SQLColAttribute with attribute:=20 SQL_DESC_AUTO_UNIQUE_VALUE
 
SQLColumns has the default value empty = (index=20 13).
 
Do you I have to query system tables to = get this=20 information?
Any comments?
 
Thanks,
Henning
 
 
------=_NextPart_000_0010_01C54A5B.297A2FC0--