Skip to content

Commit

Permalink
Fix wrong meta column type
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasHafner committed Mar 16, 2024
1 parent 839456a commit 295f6cf
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/main/java/org/polypheny/jdbc/meta/MetaResultSetSignatures.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
package org.polypheny.jdbc.meta;

import org.apache.commons.lang3.ObjectUtils;
import org.polypheny.db.protointerface.proto.*;
import org.polypheny.jdbc.utils.TypedValueUtils;

import java.sql.DatabaseMetaData;
import java.sql.PseudoColumnUsage;
import java.sql.Types;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.function.Function;
import org.apache.commons.lang3.ObjectUtils;
import org.polypheny.db.protointerface.proto.ClientInfoPropertyMeta;
import org.polypheny.db.protointerface.proto.Column;
import org.polypheny.db.protointerface.proto.Database;
import org.polypheny.db.protointerface.proto.Namespace;
import org.polypheny.db.protointerface.proto.Procedure;
import org.polypheny.db.protointerface.proto.Table;
import org.polypheny.db.protointerface.proto.TableType;
import org.polypheny.db.protointerface.proto.Type;
import org.polypheny.jdbc.utils.TypedValueUtils;

public class MetaResultSetSignatures {

Expand Down Expand Up @@ -139,7 +145,7 @@ public class MetaResultSetSignatures {
new MetaResultSetParameter<>( "CARDINALITY", Types.BIGINT, p -> (long) -1 ),
new MetaResultSetParameter<>( "PAGES", Types.BIGINT, p -> null ),
new MetaResultSetParameter<>( "FILTER_CONDITION", Types.VARCHAR, p -> null ),
new MetaResultSetParameter<>( "LOCATION", Types.VARCHAR, p -> p.getValue( 7 ) ),
new MetaResultSetParameter<>( "LOCATION", Types.INTEGER, p -> p.getValue( 7 ) ),
new MetaResultSetParameter<>( "INDEX_TYPE", Types.INTEGER, p -> p.getValue( 8 ) )
);

Expand Down

0 comments on commit 295f6cf

Please sign in to comment.