Unix Technical Forum

[ psqlodbc-Bugs-1000797 ] Conn. created by ODBCCP32.DLL/SQLConfigDataSource doesn't take some parameters

This is a discussion on [ psqlodbc-Bugs-1000797 ] Conn. created by ODBCCP32.DLL/SQLConfigDataSource doesn't take some parameters within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> Bugs item #1000797, was opened at 04/12/2006 17:43 You can respond by visiting: http://pgfoundry.org/tracker/?func=d...oup_id=1000125 Category: None Group: None Status: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 03:12 AM
noreply@pgfoundry.org
 
Posts: n/a
Default [ psqlodbc-Bugs-1000797 ] Conn. created by ODBCCP32.DLL/SQLConfigDataSource doesn't take some parameters

Bugs item #1000797, was opened at 04/12/2006 17:43
You can respond by visiting:
http://pgfoundry.org/tracker/?func=d...oup_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/de...datasource.asp)

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=d...oup_id=1000125

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:42 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com