{"record":{"id":"12b174be2aad8fb2","repo":"prestodb/presto","slug":"getnstring","errorCode":null,"errorMessage":"getNString","messagePattern":"getNString","errorType":"exception","errorClass":"SQLFeatureNotSupportedException","httpStatus":null,"severity":"error","filePath":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java","lineNumber":1398,"sourceCode":"    @Override\n    public void updateSQLXML(int columnIndex, SQLXML xmlObject)\n            throws SQLException\n    {\n        throw new SQLFeatureNotSupportedException(\"updateSQLXML\");\n    }\n\n    @Override\n    public void updateSQLXML(String columnLabel, SQLXML xmlObject)\n            throws SQLException\n    {\n        throw new SQLFeatureNotSupportedException(\"updateSQLXML\");\n    }\n\n    @Override\n    public String getNString(int columnIndex)\n            throws SQLException\n    {\n        throw new SQLFeatureNotSupportedException(\"getNString\");\n    }\n\n    @Override\n    public String getNString(String columnLabel)\n            throws SQLException\n    {\n        throw new SQLFeatureNotSupportedException(\"getNString\");\n    }\n\n    @Override\n    public Reader getNCharacterStream(int columnIndex)\n            throws SQLException\n    {\n        throw new SQLFeatureNotSupportedException(\"getNCharacterStream\");\n    }\n\n    @Override\n    public Reader getNCharacterStream(String columnLabel)","sourceCodeStart":1380,"sourceCodeEnd":1416,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java#L1380-L1416","documentation":"Sentinel method in PrestoResultSet: getNString (national character string retrieval) is not implemented by the Presto JDBC driver and always throws SQLFeatureNotSupportedException with the method name as the message.","triggerScenarios":"Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java:1398 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use getString to read character columns, including NVARCHAR data","Convert encoding in application code if needed","Avoid N-string getters with the Presto driver"],"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"}