Re: DB: forgotten @ before some pg_exec() in pgsql.php
| From: | Ondrej Jombik | Date: | Fri, 23 Aug 2002 22:33:04 +0000 |
| Subject: | Re: DB: forgotten @ before some pg_exec() in pgsql.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8629@lists.php.net to get a copy of this message | ||
Maxim, 00:31:08
24. august 2002 (sobota)
Greetings.
> > In pgsql.php file of PEAR DB package is not present '@' character
> > before few pg_exec() calls (function name), what causes ugly PHP warnings
> > especially when quering table with wrong name (for example if doesn't
> > exists).
> I've added some @'s at places where they seemed appropriate for me. Could
> you perhaps review the latest CVS version and tell us if everything works
> fine now?
Yeah, that's it! Now all pg_exec() calls are properly prepended
with @. I needed this for PDBPLUS:
00:28:46 Maxim [~]: pdbplus
Welcome to PDBPLUS 0.1-alpha the PEAR DB abstracted DBA console interface.
Type \h for help
> \dsn pgsql://ondrej@localhost/template1
Enter password:
Connected to: pgsql://ondrej:******@localhost/template1
pgsql/template1> \d bad_table
DB Error: no such table
No information for table 'bad_table'
pgsql/template1>
Ugly HTML warning was really not desirable there. I suppose that
similar changes will be needed also for others DB modules. I will write a
report, when I discover something.
Thanks,
=Nepto=
____________________________________________________________________________
Ondrej 'Nepto' Jombik, perl -le '$_=1;(1x$_)!~/^(11+)\1+$/&&print
while$_++'