comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Question about Gnade/ODBC binding
Date: Fri, 21 Sep 2007 19:44:29 +0200
Date: 2007-09-21T19:43:18+02:00	[thread overview]
Message-ID: <u3f01zlwpwk8.rt7idrlbvg36.dlg@40tude.net> (raw)
In-Reply-To: 1190371069.439288.65280@50g2000hsm.googlegroups.com

On Fri, 21 Sep 2007 03:37:49 -0700, Graham wrote:

> Does anyone here use the Gnade ODBC Interface?

I do.

> Integers, Floats and Strings work fine, but it would be good to know
> that I could get a full range of types supported, or know for certain
> that I can't.

You can use all SQL types declared in the package GNU.DB.SQLCLI.

Another question is in which part they are supported by the given ODBC
driver. In each case you have to ask the driver what it can. An example, of
querying support of definite you can find in simple components:

   http://www.dmitry-kazakov.de/ada/components.htm

file gnu-db-sqlcli-api.adb, function Get_Type_Info.

It boils down to issuing SQLGetTypeInfo and then looking through the result
set.

For more detailed information see MSDN documentation for SQLGetTypeInfo
function:

   http://msdn2.microsoft.com/en-us/library//ms714632.aspx

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



      reply	other threads:[~2007-09-21 17:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-21 10:37 Question about Gnade/ODBC binding Graham
2007-09-21 17:44 ` Dmitry A. Kazakov [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox