{"record":{"id":"a8cab6083aa9ba23","repo":"hibernate/hibernate-orm","slug":"the-insert-statement-for-table-s-contains-no-co-a8cab6","errorCode":null,"errorMessage":"The INSERT statement for table [%s] contains no column, and this is not supported by [%s]","messagePattern":"The INSERT statement for table \\[(.+?)\\] contains no column, and this is not supported by \\[(.+?)\\]","errorType":"exception","errorClass":"MappingException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/dialect/sql/ast/HANASqlAstTranslator.java","lineNumber":319,"sourceCode":"\t\t}\n\t}\n\n\t@Override\n\tprotected void renderPartitionItem(Expression expression) {\n\t\tif ( expression instanceof Literal ) {\n\t\t\tappendSql( \"grouping sets (())\" );\n\t\t}\n\t\telse if ( expression instanceof Summarization ) {\n\t\t\tthrow new UnsupportedOperationException( \"Summarization is not supported by DBMS\" );\n\t\t}\n\t\telse {\n\t\t\texpression.accept( this );\n\t\t}\n\t}\n\n\t@Override\n\tprotected void renderInsertIntoNoColumns(TableInsertStandard tableInsert) {\n\t\tthrow new MappingException(\n\t\t\t\tString.format(\n\t\t\t\t\t\t\"The INSERT statement for table [%s] contains no column, and this is not supported by [%s]\",\n\t\t\t\t\t\ttableInsert.getMutatingTable().getTableId(),\n\t\t\t\t\t\tgetDialect()\n\t\t\t\t)\n\t\t);\n\t}\n\n\t@Override\n\tprotected void visitValuesList(List<Values> valuesList) {\n\t\tvisitValuesListEmulateSelectUnion( valuesList );\n\t}\n\n\t@Override\n\tpublic void visitValuesTableReference(ValuesTableReference tableReference) {\n\t\temulateValuesTableReferenceColumnAliasing( tableReference );\n\t}\n}","sourceCodeStart":301,"sourceCodeEnd":337,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/dialect/sql/ast/HANASqlAstTranslator.java#L301-L337","documentation":"Error \"The INSERT statement for table [%s] contains no column, and this is not supported by [%s]\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown at hibernate-core/src/main/java/org/hibernate/dialect/sql/ast/HANASqlAstTranslator.java:319 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the insert specifies at least one column; SAP HANA does not support default-values inserts","Provide explicit values for at least one column of the target table"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}