pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
[ psqlodbc-Bugs-1000797 ] Conn. created by ODBCCP32.DLL/SQLConfigDataSource doesn't take some parameters
2+ messages / 1 participants
[nested] [flat]

* [ psqlodbc-Bugs-1000797 ] Conn. created by ODBCCP32.DLL/SQLConfigDataSource doesn't take some parameters
@ 2006-12-04 17:43  noreply@pgfoundry.org
  0 siblings, 0 replies; 2+ messages in thread

From: noreply@pgfoundry.org @ 2006-12-04 17:43 UTC (permalink / raw)
  To: noreply@pgfoundry.org

Bugs item #1000797, was opened at 04/12/2006 17:43
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000797&group_id=1000125

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Must Informatique (mustinfodev)
Assigned to: Nobody (None)
Summary: Conn. created by ODBCCP32.DLL/SQLConfigDataSource doesn't take some parameters

Initial Comment:
Hi.

I'm using the ODBCCP32.DLL  Windows API to create connexion on the fly (with the function 'SQLConfigDataSource').

The "C" defintion of the function is : 
BOOL SQLConfigDataSource(HWND hwndParent,UINT fRequest, LPCSTR lpszDriver, LPCSTR lpszAttributes)
(see : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcsqlconfigdatasource.as...)

It's working nicely while lpszAttributes contains standard informations like the server name, port and database name.
Though, if I want to change some specific values like MaxLongVarcharSize and 
MaxVarcharSize (like setting them to 20.000), it's not registred by the driver.
When I look at the connexion, those 2 still have the default values.

Here is the lpszAttributes content (of course, spaces are replaced by null character and the string is terminated by 2 null characters) : 
DRIVER=PostgreSQL Unicode LowerCaseIdentifier=0 UseServerSidePrepare=0 ByteaAsLongVarBinary=0 BI=0 TrueIsMinus1=0 DisallowPremature=0 UpdatableCursors=0 LFConversion=1 ExtraSysTablePrefixes=dd_ CancelAsFreeStmt=0 Parse=0 BoolsAsChar=1 UnknownsAsLongVarchar=0 TextAsLongVarchar=1 UseDeclareFetch=0 Ksqo=1 Optimizer=1 CommLog=0 Debug=0 MaxLongVarcharSize=9500 MaxVarcharSize=509 UnknownSizes=0 Socket=8192 Fetch=100 ConnSettings= ShowSystemTables=0 RowVersioning=0 ShowOidColumn=0 FakeOidIndex=0 ReadOnly=0 SSLMODE=prefer PORT=5432 SERVER=srv-XXX DATABASE=XXXXXXX 


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

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* [ psqlodbc-Bugs-1000797 ] Conn. created by ODBCCP32.DLL/SQLConfigDataSource doesn't take some parameters
@ 2006-12-08 12:38  noreply@pgfoundry.org
  0 siblings, 0 replies; 2+ messages in thread

From: noreply@pgfoundry.org @ 2006-12-08 12:38 UTC (permalink / raw)
  To: noreply@pgfoundry.org

Bugs item #1000797, was opened at 2006-12-04 17:43
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000797&group_id=1000125

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Must Informatique (mustinfodev)
Assigned to: Nobody (None)
Summary: Conn. created by ODBCCP32.DLL/SQLConfigDataSource doesn't take some parameters

Initial Comment:
Hi.

I'm using the ODBCCP32.DLL  Windows API to create connexion on the fly (with the function 'SQLConfigDataSource').

The "C" defintion of the function is : 
BOOL SQLConfigDataSource(HWND hwndParent,UINT fRequest, LPCSTR lpszDriver, LPCSTR lpszAttributes)
(see : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcsqlconfigdatasource.as...)

It's working nicely while lpszAttributes contains standard informations like the server name, port and database name.
Though, if I want to change some specific values like MaxLongVarcharSize and 
MaxVarcharSize (like setting them to 20.000), it's not registred by the driver.
When I look at the connexion, those 2 still have the default values.

Here is the lpszAttributes content (of course, spaces are replaced by null character and the string is terminated by 2 null characters) : 
DRIVER=PostgreSQL Unicode LowerCaseIdentifier=0 UseServerSidePrepare=0 ByteaAsLongVarBinary=0 BI=0 TrueIsMinus1=0 DisallowPremature=0 UpdatableCursors=0 LFConversion=1 ExtraSysTablePrefixes=dd_ CancelAsFreeStmt=0 Parse=0 BoolsAsChar=1 UnknownsAsLongVarchar=0 TextAsLongVarchar=1 UseDeclareFetch=0 Ksqo=1 Optimizer=1 CommLog=0 Debug=0 MaxLongVarcharSize=9500 MaxVarcharSize=509 UnknownSizes=0 Socket=8192 Fetch=100 ConnSettings= ShowSystemTables=0 RowVersioning=0 ShowOidColumn=0 FakeOidIndex=0 ReadOnly=0 SSLMODE=prefer PORT=5432 SERVER=srv-XXX DATABASE=XXXXXXX 


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

>Comment By: Hiroshi Inoue (hinoue)
Date: 2006-12-08 12:38

Message:
Which version of driver are you using ?

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

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-12-08 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-12-04 17:43 [ psqlodbc-Bugs-1000797 ] Conn. created by ODBCCP32.DLL/SQLConfigDataSource doesn't take some parameters noreply@pgfoundry.org
2006-12-08 12:38 [ psqlodbc-Bugs-1000797 ] Conn. created by ODBCCP32.DLL/SQLConfigDataSource doesn't take some parameters noreply@pgfoundry.org

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