Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Ingres Topics / July 2008

Tip: Looking for answers? Try searching our database.

[Info-Ingres] Dropping a table before the cursor read!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin Bowes - 18 Jul 2008 15:54 GMT
Hi Everyone,



I love query auditing, it can really show exactly which query - or
sequence of queries - is producing errors!



And in this case we see this little beauty:

drop table a_table;

create table a_table(...sundry column definitions...);

prepare statement select count(*) from a_table;

drop table a_table; /* Whoops! */

open cursor using the prepared statement;



Now obviously the open cursor has to produce an error as the drop has
butchered the prepared statement.



I just wish it was slightly more informative than...

E_SC0207_UNEXPECTED_ERROR Facility returned an undocumented error.

ULE_FORMAT: Couldn't look up message 50903 (reason: ER error 10903)

E_CL0903_ER_BADPARAM    Bad parameter

E_SC0215_PSF_ERROR    Error returned by PSF.



These errors are produced on everything from II2.6 to Inges2006rls2.



After I finish humiliating the programmer, I suppose I should report it
as a bug of some type. Although as far as I'm concerned the bug isn't
the drop table being permitted - that's an application bug, I'm thinking
a more informative message would be desireable.



Whats your opinion?



Martin Bowes
kristoff.picard@ingres.com - 29 Jul 2008 15:47 GMT
> Hi Everyone,
>
[quoted text clipped - 36 lines]
>
> Martin Bowes

This has been fixed now, the following error is returned:
E_US1265 Database reorganization activity has rendered the query plan
invalid.

Kristoff
Martin Bowes - 29 Jul 2008 16:06 GMT
Hi Kristoff,

I'm looking forward to the patch!

Marty

-----Original Message-----
From: info-ingres-bounces@kettleriverconsulting.com
[mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of
kristoff.picard@ingres.com
Sent: 29 July 2008 15:48
To: info-ingres@kettleriverconsulting.com
Subject: Re: [Info-Ingres] Dropping a table before the cursor read!

On 18 Jul, 16:54, "Martin Bowes" <martin.bo...@ctsu.ox.ac.uk> wrote:
> Hi Everyone,
>
[quoted text clipped - 36 lines]
>
> Martin Bowes

This has been fixed now, the following error is returned:
E_US1265 Database reorganization activity has rendered the query plan
invalid.

Kristoff
_______________________________________________
Info-Ingres mailing list
Info-Ingres@kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.