XanoScript : Direct Database Query with Template Engine and Booleans are not saving correctly.

Answered

Hello,

I have spotted two problems with Xanoscript so far:

  1. There is no such thing in XanoScript as a Direct Database Query with Template engine right now, it says to use code as a parameter, but the parameter doesn't exist, even if that's what the doc specifies, and there's no sql parameter in the doc, yet it's the one that displays. If I save through the XanoScript, it changes it to "Prepared statement" on it's own.

    Before save, with function documentation:


    After saving with`code` parameter


    After saving without changing anything, it changes it to "Prepared statement", which is not working with what I built and I cannot change it back to "Template engine" at all through XanoScript. However, changing it in the stack still works, but the changes aren't reflected in the XanoScript code in any way.

  2. Saving a XanoScript messes up booleans.

    1. It changes truevalue to 1.
      Before save:


      After save:

    2. It changes false value to nothing.

    3. It clears the default value in the stack, that displays as empty.


      Furthermore, without even Publishing, the default value STAYS empty after reverting changes.

      HOWEVER, the default value still works even though the stack does not show it anymore.

      Could you please make sure XanoScript doesn't break these two use cases ?

      Thank you very much

2
3 replies