Skip to content

Commit

Permalink
#71022 Use correct script context to execute query.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yulin Wang committed Feb 19, 2014
1 parent 44b5370 commit 591b643
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -212,10 +212,15 @@ public void unsetRowLimit( DataRequestSession session )
* @return query result.
* @throws BirtException
*/
public IQueryResults executeQuery(DataRequestSession session, IQueryDefinition queryDefn ) throws BirtException
public IQueryResults executeQuery( DataRequestSession session,
IQueryDefinition queryDefn ) throws BirtException
{
IPreparedQuery pq = session.prepare( queryDefn );
return (IQueryResults) session.execute( pq, null, new ScriptContext( ) );
return (IQueryResults) session.execute( pq,
null,
session.getDataSessionContext( )
.getDataEngineContext( )
.getScriptContext( ) );
}

/**
Expand Down

0 comments on commit 591b643

Please sign in to comment.