Public bug reported:

if you have table foo(text) with values foo.svg, bar.svg baz.svg and run
this code

(sql(
(SELECT text from foo||
(script( str_replace(.svg, .png, [-[text]-]); )script)<br/>)
)sql)​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

everything is fine you got
foo.png
bar.png
baz.png

but when you add normal sql like "select * from aiki_users limit 1"

it show
foo.svg
bar.svg
baz.svg

the reason for this is that str_replace parser function got [-[text]-]
instead value of text

** Affects: aikiframework
     Importance: Critical
     Assignee: Jakub Jankiewicz (jcubic)
         Status: Confirmed

** Changed in: aikiframework
   Importance: Undecided => Critical

** Changed in: aikiframework
    Milestone: None => 0.9.1

** Changed in: aikiframework
     Assignee: (unassigned) => Jakub Jankiewicz (jcubic)

** Changed in: aikiframework
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Aiki
Framework Developers, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/977923

Title:
  values are parsed to late when there is both normal in inline sql

Status in Aiki Framework:
  Confirmed

Bug description:
  if you have table foo(text) with values foo.svg, bar.svg baz.svg and
  run this code

  (sql(
  (SELECT text from foo||
  (script( str_replace(.svg, .png, [-[text]-]); )script)<br/>)
  
)sql)​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

  everything is fine you got
  foo.png
  bar.png
  baz.png

  but when you add normal sql like "select * from aiki_users limit 1"

  it show
  foo.svg
  bar.svg
  baz.svg

  the reason for this is that str_replace parser function got [-[text]-]
  instead value of text

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/977923/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to