Changes between Version 95 and Version 96 of FAQ


Ignore:
Timestamp:
Feb 23, 2012, 4:06:38 PM (13 years ago)
Author:
Peter Baumann
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v95 v96  
    167167If I send the query ''select max_cells(c.0) from rgb as c'' via command line (rasql utility), then the result is 255 as expected; if I send this query via RasJ, then the result is -1.
    168168
    169  * Java does not have an 8-bit unsigned data type. Byte is a signed 8 bit and hence 255 is represented as -1. What you can do is to transform bytes to char by adding 2^8^ if the 2^7^ bit is set. Tested, works.
     169 * Java does not have an 8-bit unsigned data type. Byte is a signed 8 bit and hence 255 is represented as -1. What you can do is to transform bytes to char by adding 2^8^ if the 2^7^ bit is set. Tested, works. Alternatively, cast to a larger data type on server side:
     170{{{
     171select (long) max_cells(c.0) from rgb as c
     172}}}
    170173
    171174=== I get class version incompatibility error messages ===
     
    175178
    176179=== Mixing trimming and slicing in WCPS fails ===
    177  * A workaround until this [ticket:64 ticket] is fixed, is to separate the two operations, e.g. instead of
     180 * A workaround until [ticket:64 this ticket] is fixed is to separate the two operations, e.g. instead of
    178181{{{
    179182c[t(5),x(0:20),y(0:20)]