prestodb/presto · error · SQLFeatureNotSupportedException
updateSQLXML
Error message
updateSQLXML
What it means
updateSQLXML in PrestoResultSet always throws SQLFeatureNotSupportedException: XML values cannot be updated through the current row because Presto result sets are read-only and SQLXML is unimplemented.
Source
Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1384
@Override
public SQLXML getSQLXML(int columnIndex)
throws SQLException
{
throw new SQLFeatureNotSupportedException("getSQLXML");
}
@Override
public SQLXML getSQLXML(String columnLabel)
throws SQLException
{
throw new SQLFeatureNotSupportedException("getSQLXML");
}
@Override
public void updateSQLXML(int columnIndex, SQLXML xmlObject)
throws SQLException
{
throw new SQLFeatureNotSupportedException("updateSQLXML");
}
@Override
public void updateSQLXML(String columnLabel, SQLXML xmlObject)
throws SQLException
{
throw new SQLFeatureNotSupportedException("updateSQLXML");
}
@Override
public String getNString(int columnIndex)
throws SQLException
{
throw new SQLFeatureNotSupportedException("getNString");
}
@Override
public String getNString(String columnLabel)View on GitHub (pinned to 55bb57d202)
Solutions
- Update XML columns via SQL UPDATE statements
- Write XML as a VARCHAR string using a PreparedStatement instead
- Keep Presto result set usage read-only
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1384 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of prestodb/presto@55bb57d202 (2026-09-04).
Data as JSON: /api/errors/e7cf6248f66f6439.
Report an issue: GitHub.