Feature Requests item #1085123, was opened at 2004-12-14 14:52 Message generated for change (Comment added) made by mlkersten You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482471&aid=1085123&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: MonetDB - MIL Group: None >Status: Closed Priority: 6 Private: No Submitted By: Marcin Zukowski (e-r00) Assigned to: Nobody/Anonymous (nobody) Summary: Easy way of checking if bat exists Initial Comment: Currently there's no way of quickly checking if BAT exists. User needs to process view_bbp_name (undocumented) or play nasty tricks like isnil(CATCH(isnil(bat(name)))). Would be nice if either: - bat(str) returned nil on error - there would be a specialized function for that. ---------------------------------------------------------------------- >Comment By: Martin Kersten (mlkersten) Date: 2007-11-10 11:38 Message: Logged In: YES user_id=490798 Originator: NO MIL is deprecated and we are not going to support this feature. ---------------------------------------------------------------------- Comment By: Stefan Manegold (stmane) Date: 2005-03-03 15:55 Message: Logged In: YES user_id=572415 Here's my comment from http://sourceforge.net/tracker/index.php?func=detail&aid=1146347&group_id=56967&atid=482468 - The bat(<str>) cast correctly detects that no BAT with the given name exists, and hence, it correctly returns "bat_nil". - However, "bat_nil" cannot not be handled by any MIL command, as already the interpreter checks for "valid" BATs, considers "bat_nil" as invalid, and issues the above error. - Thus, not even `isnil(bat("frboierfwfr"));' can work ... Two questions arise: - Should the "bat(<str>)" cast should (in addition to returning "bat_nil") also echo a warning? This is not handy, in case the "bat(<str>)" cast is used internally, and "bat_nil" return are handled elsewhere. - Should we make "isnil(bat(nil))" work, which basically means patching the interpreter somehow? IMHO, both solutions are not good, but I don't have a better one, yet ... ---------------------------------------------------------------------- Comment By: Marcin Zukowski (e-r00) Date: 2005-03-01 21:54 Message: Logged In: YES user_id=607094 I really miss it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=482471&aid=1085123&group_id=56967 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Monetdb-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/monetdb-bugs
