PEAR Problem

From: Gurudutt <guru(at)indvalley(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Cc: pgsql-php(at)postgresql(dot)org
Subject: PEAR Problem
Date: 2001-10-08 12:37:14
Message-ID: 11730930852.20011008180714@indvalley.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php pgsql-sql

Hi,

It's me again. I have been able to solve most of the porting problems
from mysql to pgsql. But I have got struck in one place. I have a
problem where PEAR's associative array doesn't recognise the mix case
letters.

eg . I issue a query through PEAR db and get results using fetchRow of
PEAR. Now I have set associative array feature ON.

suppose the query is

select NetCode,NetworkName from NetworkTab;

this would return the result into a variable called $dbRow

to echo the contents returned by the pgsql, I have to give
$dbRow[NetCode] and $dbRow[NetworkName]

This used to work perfectly fine with mysql, but as I moved to pgsql,
PEAR started to return nothing

like if i echo $dbRow[NetCode] it prints nothing

but in the same echo is I change it echo $dbRow[netcode], it prints
the value of the Network Code.

How do I handle this situation. The application is fully written with Mix Case
letters for the database fields and returned result set.

And one more thing "SET AUTOCOMMIT=0" which is to set auto commiting
to "No" in mysql doesn't work in pgsql what is the equivalent command.

--
Best regards,
Gurudutt mailto:guru(at)indvalley(dot)com

Life is not fair - get used to it.
Bill Gates

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Papp Gyozo 2001-10-08 22:14:43 Re: PEAR Problem
Previous Message Vidas Makauskas 2001-10-08 06:22:27 FW: Help with timeouts

Browse pgsql-sql by date

  From Date Subject
Next Message Chris Ruprecht 2001-10-08 12:58:07 Search by longitude/latitude
Previous Message Thurstan R. McDougle 2001-10-08 12:36:29 Re: SQL Syntax / Logic question