Changes between Version 95 and Version 96 of FAQ
- Timestamp:
- Feb 23, 2012, 4:06:38 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FAQ
v95 v96 167 167 If 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. 168 168 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 {{{ 171 select (long) max_cells(c.0) from rgb as c 172 }}} 170 173 171 174 === I get class version incompatibility error messages === … … 175 178 176 179 === 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 of180 * A workaround until [ticket:64 this ticket] is fixed is to separate the two operations, e.g. instead of 178 181 {{{ 179 182 c[t(5),x(0:20),y(0:20)]