(ThrowingSupplier<? extends ResultSetMetaData, SQLException> rs)
| 840 | } |
| 841 | |
| 842 | @Override |
| 843 | public final Field<?>[] getFields(ThrowingSupplier<? extends ResultSetMetaData, SQLException> rs) throws SQLException { |
| 844 | Field<?>[] fields = getFields(); |
| 845 | |
| 846 | // If no projection was specified explicitly, create fields from result |
| 847 | // set meta data instead. This is typically the case for SELECT * ... |
| 848 | if (fields.length == 0) |
| 849 | return new MetaDataFieldProvider(configuration(), rs.get()).getFields(); |
| 850 | |
| 851 | return fields; |
| 852 | } |
| 853 | |
| 854 | @Override |
| 855 | public final Field<?>[] getFields() { |
nothing calls this directly
no test coverage detected