[#988] Change Factory.field(String) to return Field<Object> instead of Field<?>
This commit is contained in:
parent
123b2cca0b
commit
71fafbb728
@ -512,7 +512,7 @@ public class Factory implements FactoryOperations {
|
||||
* @param sql The SQL
|
||||
* @return A field wrapping the plain SQL
|
||||
*/
|
||||
public static Field<?> field(String sql) {
|
||||
public static Field<Object> field(String sql) {
|
||||
return field(sql, new Object[0]);
|
||||
}
|
||||
|
||||
@ -537,7 +537,7 @@ public class Factory implements FactoryOperations {
|
||||
* @param bindings The bindings for the field
|
||||
* @return A field wrapping the plain SQL
|
||||
*/
|
||||
public static Field<?> field(String sql, Object... bindings) {
|
||||
public static Field<Object> field(String sql, Object... bindings) {
|
||||
return field(sql, Object.class, bindings);
|
||||
}
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ class MetaDataFieldProvider implements FieldProvider, Serializable {
|
||||
// procedures / functions
|
||||
catch (SQLException e) {
|
||||
log.warn("Cannot fetch column count for cursor : " + e.getMessage());
|
||||
fields.add(field("dummy", SQLDataType.OTHER));
|
||||
fields.add(field("dummy"));
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user