Bugs item #2051309, was opened at 2008-08-14 13:47
Message generated for change (Comment added) made by mlkersten
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2051309&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: Core
Group: MonetDB5 CVS Head
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Fabian (mr-meltdown)
Assigned to: Martin Kersten (mlkersten)
Summary: M5: lngs are truncated

Initial Comment:
# observed 14-08-2008: the parser already truncates e in the parsed
# program, additionally, l is not a lng, but a string.

s := "89437487923647823647862387462378468723634":str;
io.print(s);
l := s:lng;
io.print(l);
e := 89437487923647823647862387462378468723634:lng;
io.print(e);


added as tests/BugReports/Tests/lngsaretruncated

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

>Comment By: Martin Kersten (mlkersten)
Date: 2008-08-18 08:13

Message:
Logged In: YES 
user_id=490798
Originator: NO

The second statement is wrong, because only literals can be casted this
way.
Other coercions follow the ordinary calc.lng(s) approach.
The parser does not catch this yet.

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

Comment By: Martin Kersten (mlkersten)
Date: 2008-08-18 01:24

Message:
Logged In: YES 
user_id=490798
Originator: NO

The first and third case are now handled.
The second case can not be easily handled,
because the underlying implementation in
gdk_atoms does not 

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

Comment By: Fabian (mr-meltdown)
Date: 2008-08-14 13:50

Message:
Logged In: YES 
user_id=963970
Originator: YES

to repeat: please note that this is 2 bugs in one:

casting string to lng doesn't always work, though parsed as:
#  7 e:lng := _9: lng
(adding the type to e here results in an error)

the parser does not deal with the overflow when setting the constant

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

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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to