Bugs item #2864179, was opened at 2009-09-22 10:30
Message generated for change (Comment added) made by nielsnes
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2864179&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SQL/Core
Group: SQL CVS Head
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Arjen de Rijke (arjenderijke)
Assigned to: Niels Nes (nielsnes)
Summary: function call not handled

Initial Comment:
When the result of a function call within a function is assigned to a variable 
and that variable is not used in the calling function, the called function is 
never executed. The attached file demonstrates this behaviour. It also 
explaines the failing of sql test src/test/Via-m/Tests/file_s18.

----------------------------------------------------------------------

>Comment By: Niels Nes (nielsnes)
Date: 2009-11-11 18:43

Message:
fixed by improving the check for side effect statements in a sql generated
function.

----------------------------------------------------------------------

Comment By: Arjen de Rijke (arjenderijke)
Date: 2009-09-30 12:14

Message:
I added the script as a test on current,
function_call_not_handled.SF-2864179. Last testing on current the test
failed, so the bug is not fixed.

----------------------------------------------------------------------

Comment By: Arjen de Rijke (arjenderijke)
Date: 2009-09-25 08:10

Message:
According to
http://monetdb.cwi.nl/testing/projects/monetdb/Current/sql/.mTests103/GNU.64.64.d.0-Fedora10/src_test_Via-m/file_s18.out.00.html
of today the problem still exists. But maybe that test is more complicated
than the script i attached to this bugreport. To be precise, the problem
occurs in test file_s17, that contains the call to a function. And because
that function does not insert records into a table, the test file_s18
failes, because the table does not contain the records that are expected.

----------------------------------------------------------------------

Comment By: Niels Nes (nielsnes)
Date: 2009-09-23 19:45

Message:
fixed on current by martin

----------------------------------------------------------------------

Comment By: Stefan Manegold (stmane)
Date: 2009-09-22 10:49

Message:
Dead code elimination at work?

Or: dead code elimination does (can?) not recognize that your function has
a side effect, and hence skips the function call, since its result is not
used?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2864179&group_id=56967

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to