non-refdb DB error messages

"Markus Hoenicka" <[email protected]>
Newsgroups gmane.text.refdb.general
Message-ID <[email protected]>
Hi Damien,

Damien Jade Duff writes:
 > acws-0175% refdbc -C getnote :NID:\>0
 > ERROR:  relation "t_note" does not exist
 > select failed
 > acws-0175%
 > 
 > ........................
 > 
 > ...I think it would be nicer in this case to produce information like in
 > the first case so that I can figure out the source of the error and
 > don't start think about sending silly messages to the refdb-users group...
 > 
 > ...feel free to disagree with me completely!
 > 

I've checked, and the code to do this is (almost) in place
anyway. Currently refdbd checks for a RefDB database only if you use
the selectdb command in an interactive session. Try that, and you
should get an error message which is a bit more informative than what
you saw.

Clearly, this doesn't help if you run the clients in batch mode. I
could make the db check mandatory for each database connection, but
this also means one additional query per client command. I guess I'll
have to figure out some switch which allows experienced users to turn
off this check in order to gain some speed.

regards,
Markus

-- 
Markus Hoenicka
[email protected]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.