Changes between Initial Version and Version 1 of Ticket #2755


Ignore:
Timestamp:
Aug 30, 2023, 9:30:27 AM (15 months ago)
Author:
Dimitar Misev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2755

    • Property Owner changed from Dimitar Misev to nivlev@…
    • Property Summary FIX - rasql - pow with parenthesis in second paramter failedFIX - rasql - pow should support integer parameter and parentheses
  • Ticket #2755 – Description

    initial v1  
     1The pow function currently supports only floating-point exponent, e.g.
     2{{{
     3SELECT pow(2, 2.0)
     4}}}
     5It should also support integer type exponents (octet, char, short, ushort, long, ulong), i.e. these shouldn't return an error:
     6{{{
     7SELECT pow(2, 2o)
     8SELECT pow(2, 2c)
     9SELECT pow(2, 2s)
     10SELECT pow(2, 2us)
     11SELECT pow(2, 2)
     12SELECT pow(2, 2ul)
     13}}}
    114
     15Also, it has trouble parsing exponent expressions, e.g.
    216{{{
    317SELECT encode(POW(c, ( 2.5 ) ), "png" , "{\"metadata\":{\"resolution\":\"1\"},\"nodata\":[]}") FROM test_mr AS c
    418}}}
    5 
    619
    720with error