Changes between Version 35 and Version 36 of FAQ
- Timestamp:
- Mar 25, 2010, 2:51:08 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FAQ
v35 v36 42 42 43 43 {{{ tcpip_socket = true }}} 44 45 * '''Q: Aggregation result from ''select max_cells(c.0) from rgb as c'': If I send this query via command line (rasql utility), then the result is 255; if I send this query via RasJ, then the result is -1.''' 46 47 A: 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. 48