noreply | 7 Feb 2012 14:14

[ psqlodbc-Bugs-1011159 ] ODBC driver names on 64bit platforms

Bugs item #1011159, was opened at 2012-02-07 14:14
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1011159&group_id=1000125

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jochen Wezel (jwezel)
Assigned to: Nobody (None)
Summary: ODBC driver names on 64bit platforms

Initial Comment:
On x84 and x64 systems, psqlodbc.msi installs 2 odbc drivers called
- "PostgreSql ANSI"
- "PostgreSql Unicode"

On x64 systems, psqlodbc_x64.msi installs 2 odbc drivers called
- "PostgreSql ANSI(x64)"
- "PostgreSql Unicode(x64)"

As a result, 
1. the driver name "PostgreSql" (which is often used in connection string examples on the web) doesn't work
2. the driver name differs on x64 machines for applications running in x86 mode or x64 mode. MS Access 32bit
can use the regular name "PostgreSql Unicode" but MS Access 64bit must use "PostgreSql Unicode(x64)".
This requires us to provide 2 database files for both platforms.

Suggested, simple solution:

(Continue reading)

noreply | 7 Feb 2012 14:20

[ psqlodbc-Bugs-1011159 ] ODBC driver names on 64bit platforms

Bugs item #1011159, was opened at 2012-02-07 14:14
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1011159&group_id=1000125

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jochen Wezel (jwezel)
Assigned to: Nobody (None)
Summary: ODBC driver names on 64bit platforms

Initial Comment:
On x84 and x64 systems, psqlodbc.msi installs 2 odbc drivers called
- "PostgreSql ANSI"
- "PostgreSql Unicode"

On x64 systems, psqlodbc_x64.msi installs 2 odbc drivers called
- "PostgreSql ANSI(x64)"
- "PostgreSql Unicode(x64)"

As a result, 
1. the driver name "PostgreSql" (which is often used in connection string examples on the web) doesn't work
2. the driver name differs on x64 machines for applications running in x86 mode or x64 mode. MS Access 32bit
can use the regular name "PostgreSql Unicode" but MS Access 64bit must use "PostgreSql Unicode(x64)".
This requires us to provide 2 database files for both platforms.

Suggested, simple solution:

(Continue reading)

jason.tuttle | 15 Feb 2012 19:33

odbc driver version question for PostgreSQL 8.3.

It seems like I've done a reasonable amount of scouring to find the answer to this without success. So I'm going to take a shot at sending this to you.

We are installing PostgreSQL 8.3 on a 64 bit Solaris OS. Should I download the latest ODBC driver for 64 bit system (I believe it's psqlodbc_09_01_0100-x64.zip) or should I stick with one of the psqlodbc_08_03_0x00.zip versions?

Regards

Jason Tuttle
US Bank Voice Engineering *Call Center Applications
612.492.2883

U.S. BANCORP made the following annotations
---------------------------------------------------------------------
Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation.


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

Adrian Klaver | 15 Feb 2012 19:58
Picon

Re: odbc driver version question for PostgreSQL 8.3.

On Wednesday, February 15, 2012 10:33:09 am jason.tuttle <at> usbank.com wrote:
> It seems like I've done a reasonable amount of scouring to find the answer
> to this without success. So I'm going to take a shot at sending this to
> you.
> 
> We are installing PostgreSQL 8.3 on a 64 bit Solaris OS. Should I download
> the latest ODBC driver for 64 bit system (I believe it's
> psqlodbc_09_01_0100-x64.zip) or should I stick with one of the
> psqlodbc_08_03_0x00.zip versions?

As far as I know the ODBC drivers are backwards compatible.  The question is 
where you intend to load the driver? If you want it on Solaris the *.zip 
versions will not work as they represent MSI  packages for use in Windows.  You 
will need to get the tarballs located in the src directory here:

http://www.postgresql.org/ftp/odbc/versions/src/

When you untar them there will be a docs/ with a unix-compilation.html file to 
help with building.

> 
> Regards
> 
> Jason Tuttle
> US Bank Voice Engineering *Call Center Applications
> 612.492.2883
> U.S. BANCORP made the following annotations

-- 
Adrian Klaver
adrian.klaver <at> gmail.com

--

-- 
Sent via pgsql-odbc mailing list (pgsql-odbc <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

jason.tuttle | 15 Feb 2012 20:32

Re: odbc driver version question for PostgreSQL 8.3.

The backwards compatible answer makes me feel good since the 8.3 version of the drivers don't specify 64 bit compatibility. We'll package the latest for deployment to our users - for use on their win xp desktops.

Thanks Adrian!

Jason Tuttle
US Bank Voice Engineering *Call Center Applications
612.492.2883



From:        Adrian Klaver <adrian.klaver <at> gmail.com>
To:        pgsql-odbc <at> postgresql.org
Cc:        jason.tuttle <at> usbank.com
Date:        02/15/2012 12:58 PM
Subject:        Re: [ODBC] odbc driver version question for PostgreSQL 8.3.



On Wednesday, February 15, 2012 10:33:09 am jason.tuttle <at> usbank.com wrote:
> It seems like I've done a reasonable amount of scouring to find the answer
> to this without success. So I'm going to take a shot at sending this to
> you.
>
> We are installing PostgreSQL 8.3 on a 64 bit Solaris OS. Should I download
> the latest ODBC driver for 64 bit system (I believe it's
> psqlodbc_09_01_0100-x64.zip) or should I stick with one of the
> psqlodbc_08_03_0x00.zip versions?

As far as I know the ODBC drivers are backwards compatible.  The question is
where you intend to load the driver? If you want it on Solaris the *.zip
versions will not work as they represent MSI  packages for use in Windows.  You
will need to get the tarballs located in the src directory here:

http://www.postgresql.org/ftp/odbc/versions/src/

When you untar them there will be a docs/ with a unix-compilation.html file to
help with building.



>
> Regards
>
> Jason Tuttle
> US Bank Voice Engineering *Call Center Applications
> 612.492.2883
> U.S. BANCORP made the following annotations

--
Adrian Klaver
adrian.klaver <at> gmail.com

U.S. BANCORP made the following annotations
---------------------------------------------------------------------
Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation.


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

Adrian Klaver | 15 Feb 2012 20:53
Picon

Re: odbc driver version question for PostgreSQL 8.3.



On Wed, Feb 15, 2012 at 11:32 AM, <jason.tuttle <at> usbank.com> wrote:
The backwards compatible answer makes me feel good since the 8.3 version of the drivers don't specify 64 bit compatibility. We'll package the latest for deployment to our users - for use on their win xp desktops.

Well there is theory and then there is reality:) I would at least check out the new driver on a few machines before rolling it out. Here is a good read on 32/64 Postgres ODBC set up on Windows:



Thanks Adrian!

Jason Tuttle
US Bank Voice Engineering *Call Center Applications
612.492.2883



From:        Adrian Klaver <adrian.klaver <at> gmail.com>
To:        pgsql-odbc <at> postgresql.org
Cc:        jason.tuttle <at> usbank.com
Date:        02/15/2012 12:58 PM
Subject:        Re: [ODBC] odbc driver version question for PostgreSQL 8.3.



On Wednesday, February 15, 2012 10:33:09 am jason.tuttle <at> usbank.com wrote:
> It seems like I've done a reasonable amount of scouring to find the answer
> to this without success. So I'm going to take a shot at sending this to
> you.
>
> We are installing PostgreSQL 8.3 on a 64 bit Solaris OS. Should I download
> the latest ODBC driver for 64 bit system (I believe it's
> psqlodbc_09_01_0100-x64.zip) or should I stick with one of the
> psqlodbc_08_03_0x00.zip versions?

As far as I know the ODBC drivers are backwards compatible.  The question is
where you intend to load the driver? If you want it on Solaris the *.zip
versions will not work as they represent MSI  packages for use in Windows.  You
will need to get the tarballs located in the src directory here:

http://www.postgresql.org/ftp/odbc/versions/src/

When you untar them there will be a docs/ with a unix-compilation.html file to
help with building.



>
> Regards
>
> Jason Tuttle
> US Bank Voice Engineering *Call Center Applications
> 612.492.2883
> U.S. BANCORP made the following annotations

--
Adrian Klaver
adrian.klaver <at> gmail.com

U.S. BANCORP made the following annotations
---------------------------------------------------------------------
Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation.


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




--
Adrian Klaver
adrian.klaver <at> gmail.com
Picon
Favicon

psqlODBC driver version compatibility with PostgreSQL database

Hi

Can I use the 8.4 driver with 9.1 servers or is not compatible? I was looking for information about the
compatibility on the official website but I couldn't find it.

Thanks,

Hisayoshi Tamaki

--

-- 
Sent via pgsql-odbc mailing list (pgsql-odbc <at> postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Harun Trefry | 22 Feb 2012 03:01
Picon
Favicon

Re: psqlODBC driver version compatibility with PostgreSQL database

Hi,

Yes you can.

As always, testing is the only was to guarantee that your application(s) will work with this setup, but it should be fine.

Regards,
Harun Trefry

The information contained in this email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please promptly notify the sender by reply email and then delete the email and destroy any printed copy. If you have received this email in error, you must not disclose or use this information in any way.

On 19/02/12 22:33, Tamaki, Hisayoshi (TS/TC/IWS_1) wrote:
Hi Can I use the 8.4 driver with 9.1 servers or is not compatible? I was looking for information about the compatibility on the official website but I couldn't find it. Thanks, Hisayoshi Tamaki
Picon
Favicon

Re: psqlODBC driver version compatibility with PostgreSQL database

Hi Harun,

 

Thank you for your response.

 

I was relieved to find that out. Can you please tell me where can I find information about the compatibility on the Internet.

 

Regards,

 

Hisayoshi Tamaki

From: Harun Trefry [mailto:htrefry <at> lynx.com.au]
Sent: Wednesday, February 22, 2012 11:01 AM
To: Tamaki, Hisayoshi (TS/TC/IWS_1)
Cc: pgsql-odbc <at> postgresql.org
Subject: Re: [ODBC] psqlODBC driver version compatibility with PostgreSQL database

 

Hi,

Yes you can.

As always, testing is the only was to guarantee that your application(s) will work with this setup, but it should be fine.

Regards,
Harun Trefry

The information contained in this email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please promptly notify the sender by reply email and then delete the email and destroy any printed copy. If you have received this email in error, you must not disclose or use this information in any way.


On 19/02/12 22:33, Tamaki, Hisayoshi (TS/TC/IWS_1) wrote:

Hi

 

Can I use the 8.4 driver with 9.1 servers or is not compatible? I was looking for information about the compatibility on the official website but I couldn't find it.

 

Thanks,

 

Hisayoshi Tamaki

 

Ganesh Borse | 24 Feb 2012 06:06
Picon

Request for help on retrieving binary data from bytea column using ODBC calls

Dear All,

I've a VC++ application which displays the various binary files (like jpgs, xls, zips) stored in PostgrelSQL DB in bytea column.
Files are inserted into bytea column using hex encoding.

But, when I try to access this column by executing the query "select * from tablename;" from ODBC on Windows in this application, the buffer contains the same hex encoded data, but not the binary data.

Application does the following steps to retrieve this binary data. This same code works well with other DBS, like Oracle, Sybase, DB2, MSSQL & so on.
//---------------------------------------------------------------------------------------------------
// prepare query:
wchar_t *query = _T("select * from mytable;");
   SQLRETURN ret = SQLPrepare(stmt, query, SQL_NTS);
   if (!SQL_SUCCEEDED(ret))
   {
      TRACE("SybAse:SQLprepare failed.");
      DbException::sqlErrorInfo(SQL_HANDLE_STMT, stmt);
      throw DbException(std::string(""));
   }
// bind to column:
   SQLBindCol(stmtHdl, columnNumber, SQL_C_BINARY,
             m_colValue[0], m_len, &m_LenInd[0]);
// Execute query:
ret = SQLExecute(stmt);
// fetch rows
if (SQL_SUCCESS == ret || SQL_SUCCESS_WITH_INFO == ret)
{
   do {
      ret = SQLFetchScroll(m_stmt, SQL_FETCH_NEXT, 0);
      // handle data per row here...
   } while(SQL_SUCCEEDED(ret));
}
//---------------------------------------------------------------------------------------------------
Can you please help me know, how can I retrieve the data stored in bytea columns in binary format, so that those file can be handled appropriately?

Thanks in advance for your help and guidance.

Best Regards,
Ganesh


Gmane