[Cubicweb] Bug in RQL SUBSTRING

Yann Cointepas yann at cointepas.net
Fri Aug 9 09:51:39 CEST 2013


Hi,

In cubicweb 3.17.3, when I use SUBSTRING( string, start, length ), the
result size is length - 1 if start = 0. For instance, the following request
return lines with 2 and 3 :

Any LENGTH( SUBSTRING( SC, 0, 3 ) ), LENGTH( SUBSTRING( SC, 1, 3 ) ) WHERE
S subject_code SC

Regards,

      Yann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20130809/62d007bc/attachment-0126.html>


More information about the Cubicweb mailing list