String stmt = op.getSQLString();
SQLUtil su = new SQLUtil(stmt);
if (m_opt.getVerbose())
{
su.enable_tracing();
}
else
{
su.disable_tracing();
}
try
{
if (op.getOperationCode() == SQLOperation.CALL
|| op.getOperationCode() == SQLOperation.VALUES)
{
su.call_expr();
}
else
{
su.sql_statement();
}
}
catch (ParseException exn)
{
CustomParseException cpe = new CustomParseException(exn);
if (m_opt.getPortable())
{
errlog.addEntry(new JSError(cpe.getMessage(stmt)));
}
else
{
errlog.addEntry(new Warning(cpe.getMessage(stmt)));
}
}
catch (TokenMgrError exn)
{
if (m_opt.getPortable())
{
errlog.addEntry(new JSError(exn.getMessage()));
}
else
{
errlog.addEntry(new Warning(exn.getMessage()));
}
}