@@ -103,12 +103,37 @@ private Map<Request, Response> createMapping() {
103103 Meta .Frame .create (0 , true ,
104104 Arrays .<Object >asList (new Object [] {new Object []{"my_table" , 10 }})), -1 , null ));
105105
106- // Get the tables, no tables exist
107106 mappings .put (
108107 new TablesRequest (connectionId , null , null ,
109108 "additionalColumnsTest" , Collections .<String >emptyList ()),
110109 // ownStatement=false just to avoid the extra close statement call.
111- new ResultSetResponse (null , 150 , false , null , Meta .Frame .EMPTY , -1 , null ));
110+ new ResultSetResponse ("0" , 1 , false ,
111+ Meta .Signature .create (
112+ Arrays .<ColumnMetaData >asList (
113+ MetaImpl .columnMetaData ("TABLE_CAT" , 0 , String .class , true ),
114+ MetaImpl .columnMetaData ("TABLE_SCHEM" , 1 , String .class , true ),
115+ MetaImpl .columnMetaData ("TABLE_NAME" , 2 , String .class , true ),
116+ MetaImpl .columnMetaData ("TABLE_TYPE" , 3 , String .class , true ),
117+ MetaImpl .columnMetaData ("REMARKS" , 4 ,String .class , true ),
118+ MetaImpl .columnMetaData ("TYPE_CAT" , 5 , String .class , true ),
119+ MetaImpl .columnMetaData ("TYPE_SCHEM" , 6 , String .class , true ),
120+ MetaImpl .columnMetaData ("TYPE_NAME" , 7 , String .class , true ),
121+ MetaImpl .columnMetaData ("SELF_REFERENCING_COL_NAME" , 8 , String .class , true ),
122+ MetaImpl .columnMetaData ("REF_GENERATION" , 9 , String .class , true ),
123+ MetaImpl .columnMetaData ("HSQLDB_TYPE" , 10 , String .class , true ),
124+ MetaImpl .columnMetaData ("READ_ONLY" , 11 , Boolean .class , true ),
125+ MetaImpl .columnMetaData ("COMMIT_ACTION" , 12 , String .class , true ),
126+ MetaImpl .columnMetaData ("EXTRA_LABEL" , 13 , Boolean .class , true )),
127+ null , null , Meta .CursorFactory .ARRAY , Meta .StatementType .SELECT ),
128+ Meta .Frame .create (0 , true ,
129+ Arrays .<Object >asList (
130+ new Object [] {"table_cat" , "table_schem" , "table_name" , "table_type" , "remarks" ,
131+ "type_cat" , "type_schem" , "type_name" , "self_referencing_col_name" ,
132+ "ref_generation" , "hsqldb_type" , true , "commit_action" , "extra_label1" },
133+ new Object [] {"table_cat" , "table_schem" , "table_name" , "table_type" ,
134+ "remarks" , "type_cat" , "type_schem" , "type_name" , "self_referencing_col_name" ,
135+ "ref_generation" , "hsqldb_type" , false , "commit_action" , "extra_label2" }
136+ )), -1 , null ));
112137
113138 return Collections .unmodifiableMap (mappings );
114139 }
0 commit comments