pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: noreply@pgfoundry.org
To: noreply@pgfoundry.org
Subject: [ psqlodbc-Bugs-1000720 ] SQLGetInfo SQL_DATABASE_NAME no info
Date: Tue, 12 Dec 2006 23:57:22 +0000 (UTC)
Message-ID: <20061212235722.9BD97216E64@pgfoundry.org> (raw)

Bugs item #1000720, was opened at 2006-08-29 20:25
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000720&group_id=1000125

Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Farid Zidan (faridz)
>Assigned to: Hiroshi Inoue (hinoue)
Summary: SQLGetInfo SQL_DATABASE_NAME no info

Initial Comment:
Driver does not return database name for SQLGetInfo DATABASE_NAME

    // database name
	rc = SQLGetInfo( m_hdbc, SQL_DATABASE_NAME, m_szDatabaseName, 
                     sizeof( m_szDatabaseName ), &nLenOut );


----------------------------------------------------------------------

Comment By: Farid Zidan (faridz)
Date: 2006-12-12 15:13

Message:
This appears to be fixed in the latest ODBC driver release. 
Thanks.

----------------------------------------------------------------------

Comment By: Farid Zidan (faridz)
Date: 2006-12-01 05:10

Message:
I only need to know the name of the database for the
connection. I don't need to do any cross-catalog selects, etc. 

----------------------------------------------------------------------

Comment By: Farid Zidan (faridz)
Date: 2006-08-30 21:53

Message:
The current database is exactly what SQL_DATABASE_NAME
should return. Right now it returns nothing.

MS DOC for SQL_DATABASE_NAME
A character string with the name of the current database in
use, if the data source defines a named object called
"database". 

Whether the dbms supports qualifying objects by their
catalog name is determined by SQL_CATALOG_USAGE which is
appears to reflect the driver capability right now and is ok.


----------------------------------------------------------------------

Comment By: Hiroshi Inoue (hinoue)
Date: 2006-08-30 21:33

Message:
The driver has returned "" for the request because PostgreSQL didn't support database.schema.table notation (even schema
 support was unavailable until 7.3). Though
 PostgreSQL supports the notation in recent
 versions, I'm not sure if the driver is safe
 for the notation.

PostgreSQL is essentially a catalog-less
dbms. Though PostgreSQL allows the notation,
 the only valid database is the current one.

regards,
Hiroshi Inoue

----------------------------------------------------------------------

You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000720&group_id=1000125



view thread (4+ messages)

Message-ID: <20061212235722.9BD97216E64@pgfoundry.org>
Permalink:  ../20061212235722.9BD97216E64@pgfoundry.org/
Also on:    postgresql.org/message-id/20061212235722.9BD97216E64@pgfoundry.org

 · 

reply

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: noreply@pgfoundry.org
  Subject: Re: [ psqlodbc-Bugs-1000720 ] SQLGetInfo SQL_DATABASE_NAME no info
  In-Reply-To: <20061212235722.9BD97216E64@pgfoundry.org>
  References: <20061212235722.9BD97216E64@pgfoundry.org>

* 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