[Monetdb-developers] bat.new undefined

Martin Kersten Martin.Kersten at cwi.nl
Wed Nov 14 22:56:27 CET 2007


Fabian Groffen wrote:
> On 14-11-2007 22:46:34 +0100, darabi at web.de wrote:
>   
>> mal>    # create schema, if it doesn't exist
>> mal>    catch MALException:str;
>> mal>
>> mal>        s := bat.new(:void,:oid);
>> mal>        bat.setName(s, "schema");
>> mal>        bat.setPersistent(s);
>> mal>
>> mal>        s := bat.new(:void,:void);
>>     
>
> The error occurs here.  This is a typing issue, but the expert has to
> give his opinion on it to make it final.  ;)
>
> You can try (haven't tested it) to first set it to nil, e.g.:
> s := nil;
>   
there he is:-)

In MAL arguments and signatures are strongly typed.

s:bat[:void,:oid] := bat.new(_6:void, _6:void)

is type incompatible.
it should have been

s:bat[:void,:oid] := bat.new(_6:void, _7:oid)

> -------------------------------------------------------------------------
> 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-developers mailing list
> Monetdb-developers at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-developers
>   





More information about the developers-list mailing list