[#988] Change Factory.field(String) to return Field<Object> instead of Field<?>

This commit is contained in:
Lukas Eder 2011-12-10 16:44:36 +00:00
parent 123b2cca0b
commit 71fafbb728
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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 {