cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Franck_R
Level III

PostgreSQL function: is it a bug?

Hi,

I have a problem with queries on a PostgreSQL database using the JMP query builder...
Indeed some PostgreSQL functions seem not working properly in the query builder...

For example if I want to retrieve part of a string from the position of one of the character:
this command could ben written in PostgreSQL:

SELECT substring('Thomas' from position('h' in 'Thomas') for 2) AS bug_test

 

But if I write it in "add computed column" in the JMP query builder with the SQL formula editor:

substring('Thomas' from position('h' in 'Thomas') for 2)

I get this error:

bug2.png

whereas this same command is well executed if I write it by hand in SQL Custom:

bug3.png

And in that case it is translated in jsl like other SQL command...

bug4.png

 

What I don't understand is that I can sometimes write complex formulas in query builder's "computed columns" that are in pure PostgreSQL syntax and everything works fine! Like:

bug5.png

This computed column works fine and return no error message. It is however a specific postgresql code...

 

Is this a known bug on some PostgreSQL functions? How to work around it?

Thanks for your help!

 

Franck

2 REPLIES 2

Re: PostgreSQL function: is it a bug?

Add Computed Column has a list of some extensions that it will support for database specific SQL, but postgresql is not one of them.  By default you probably are getting Generic SQL in the dropdown at the upper left of the formula editor.  There are some extensions supported for Oracle, MySQL, SQL Server, SAS etc. 

 

We will need to consider a postgresql specific extension set for a future version of JMP.

 

Brian Corcoran

JMP Development

 

Franck_R
Level III

Re: PostgreSQL function: is it a bug?

Hello Brian

Thanks for your answer

What is strange for me is that for example the "lpad" or "to char" functions are specific syntax from PostgreSQL, not some generic SQL or Oracle SQL,... and works very well:

t2.lot_id || '-' || lpad(to_char(t2.wafer_nr, 'FM999'), 2, '0')

Recommended Articles