You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same behavior with getPrimarykeys method.
This troubleshouting comes from the AbsractDatabaseMetaData.Clause class.
The contructor estimate that the table name with an underscore contains a wildcard and add a "%" at the end of the search string.
A good fix may be another constructor with a third parameter :
public Clause (String columnName, String pattern, boolean skipWildcards) {
...
}
Submitted by: @asfernandes
Assigned to: Roman Rokytskyy (rrokytskyy)
Votes: 2
If you had these tables:
create table table_a (n1 integer);
create table table_a_b (n1 integer);
And ask metadata with:
metaData.getColumns(null, null, "TABLE_A", "%");
Jaybird wrong returns TABLE_A_B column together. When unescaped underline is found, it seems it just look for "TABLE_A%".
Commits: c47288c
The text was updated successfully, but these errors were encountered: