cancel
Showing results for 
Search instead for 
Did you mean: 

FOR JSON AUTO crashes SA17 and PHP 5.5.9-1ubuntu4.14

1,979

I'm running SA 17.0.0.1358, PHP 5.5.9 under Ubuntu 14.04.

The following script crashes the PHP extension and I get a "502 Bad Gateway" error.

    $conn = sasql_connect( "SERVER=demo17;DBN=demo;UID=DBA;PWD=sql" );
    if( $conn ) {
        $rows = array();
        $rs = sasql_query( $conn, "SELECT * FROM Departments FOR JSON AUTO;" );
        print "QUERY WORKED";
        sasql_disconnect( $conn );
    }

If I leave out the 'FOR JSON AUTO' clause, it works fine.

Anyone else seen this?

Accepted Solutions (0)

Answers (0)