• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[INCORPORATED] NITRO ADMIN - DataSource - Free SQL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [INCORPORATED] NITRO ADMIN - DataSource - Free SQL

    currently it seems that a UNION or a WITH is supported within an sql statement.

    Is there any change this might become available in the future?

    currently to solve this, i need to create a new sql view..
    Last edited by sean.lanktree; 08-16-2019, 04:23 PM.

  • #2
    Thierry,

    UNION or WITH should work in NAB SQL based data sources.

    Can you share a full example statement that isn’t working for you?

    Thanks

    Comment


    • #3
      Hi Johnny,

      Just restarted the apache instance, and now seems to be working again..

      However i ran into another problem.

      when i use the following datasource as an example

      PHP Code:
      SELECT  cxcuno,  cxcunm
      FROM  codat
      /cxx
      UNION
      SELECT  arnartk
      ,  arxarkl
      FROM codathu
      /cobarpf
      ORDER BY 1 

      the data source is valid, however when adding a grid-widget, i come into an error, saying that it has problems with the order by of column 1....

      PHP Code:
      Server Error

      An unexpected error occurred on the server
      . See Valence error log for further details.

      Description: SQL statement prep failure (SQLSTT=42707) - SQL0208 - Kolom ASC of expressie in ORDER BY niet in resultaattabel.

      Error Log ID: 61 

      Comment


      • #4
        Thierry,

        We were able to replicate the issue and hope to have a fix in our next 5.2 update.

        Thanks for reporting it!

        Comment


        • #5
          great..; thats good news...
          although i discovered that giving the same name to the column that needs to be ordered also solves it..
          example below works


          PHP Code:
          SELECT  cxcuno as col1,   cxcunm
          FROM  codat
          /cxx
          UNION
          SELECT  arnartk 
          as col1 ,  arxarkl
          FROM codathu
          /cobarpf
          ORDER BY col1 

          Comment

          Working...
          X