prestodb/presto · error · SQLFeatureNotSupportedException
updateNString
Error message
updateNString
What it means
updateNString in PrestoResultSet always throws SQLFeatureNotSupportedException: national-character string updates on the current row are unsupported because Presto result sets are read-only and the NCHAR APIs are not implemented.
Source
Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1328
public int getHoldability()
throws SQLException
{
checkOpen();
return ResultSet.HOLD_CURSORS_OVER_COMMIT;
}
@Override
public boolean isClosed()
throws SQLException
{
return closed.get();
}
@Override
public void updateNString(int columnIndex, String nString)
throws SQLException
{
throw new SQLFeatureNotSupportedException("updateNString");
}
@Override
public void updateNString(String columnLabel, String nString)
throws SQLException
{
throw new SQLFeatureNotSupportedException("updateNString");
}
@Override
public void updateNClob(int columnIndex, NClob nClob)
throws SQLException
{
throw new SQLFeatureNotSupportedException("updateNClob");
}
@Override
public void updateNClob(String columnLabel, NClob nClob)View on GitHub (pinned to 55bb57d202)
Solutions
- Use a SQL UPDATE statement to change string column values
- Read string columns with getString instead of N-string update APIs
- Treat Presto result sets as non-updatable in application design
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1328 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/4e9c0d77d3ad3085.
Report an issue: GitHub.