[SQL] 7.0.3 and 7.1.3 different results?

2001-10-02 Thread Joel Mc Graw
A query such as "select sum(pages) from job_documents where delivery_type='print'" returned 0 in version 7.0.3 if there were no rows matching the query. In 7.1.3 the result is NULL if no rows match the query. Why the change? Which result is "correct" according to the SQL standard? I'm running

Re: [SQL]

2000-11-23 Thread Joel Mc Graw
"Luis Farfán" wrote: > > ello there, > I'm looking for a (free, shareware) SQL parser and I > haven't had much > luck. I was wandering whether it's feasible to get > postgresql and > "separate" the parser from the rest of the code and > use it > stand-alone. Any experience, suggestions or commen

Re: [SQL] invoke an external shell script from a function

2000-09-29 Thread Joel Mc Graw
Peter Eisentraut wrote: > > Chau, Artemis writes: > > > Does anyone know how to invoke an external shell script from a function when > > it is called from a sql statement? > > If it's a C function, use system("file"). Is this the only way to do this? I would also like to have a trigger call a