{"record":{"id":"4e9c0d77d3ad3085","repo":"prestodb/presto","slug":"updatenstring","errorCode":null,"errorMessage":"updateNString","messagePattern":"updateNString","errorType":"exception","errorClass":"SQLFeatureNotSupportedException","httpStatus":null,"severity":"error","filePath":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java","lineNumber":1328,"sourceCode":"    public int getHoldability()\n            throws SQLException\n    {\n        checkOpen();\n        return ResultSet.HOLD_CURSORS_OVER_COMMIT;\n    }\n\n    @Override\n    public boolean isClosed()\n            throws SQLException\n    {\n        return closed.get();\n    }\n\n    @Override\n    public void updateNString(int columnIndex, String nString)\n            throws SQLException\n    {\n        throw new SQLFeatureNotSupportedException(\"updateNString\");\n    }\n\n    @Override\n    public void updateNString(String columnLabel, String nString)\n            throws SQLException\n    {\n        throw new SQLFeatureNotSupportedException(\"updateNString\");\n    }\n\n    @Override\n    public void updateNClob(int columnIndex, NClob nClob)\n            throws SQLException\n    {\n        throw new SQLFeatureNotSupportedException(\"updateNClob\");\n    }\n\n    @Override\n    public void updateNClob(String columnLabel, NClob nClob)","sourceCodeStart":1310,"sourceCodeEnd":1346,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java#L1310-L1346","documentation":"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.","triggerScenarios":"Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1328 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55bb57d202de3b926896fa966c2c4a44c779634e","analyzedAt":"2026-09-04T12:50:26.162Z","contentChangedAt":"2026-09-04T12:50:26.162Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}