mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#356 - ENH: Change to Binder logging such that the value in the bind log is the converted/bound value
This commit is contained in:
1 parent
f2aa2b5b8b
commit
962d7f601d
2 files changed
+6
-4
No files matched your search
@@ -142,11 +142,12 @@ public class Binder {
|
||||
/**
|
||||
* Bind an Object with unknown data type.
|
||||
*/
|
||||
public void bindObject(DataBind dataBind, Object value) throws SQLException {
|
||||
public Object bindObject(DataBind dataBind, Object value) throws SQLException {
|
||||
|
||||
if (value == null) {
|
||||
// null of unknown type
|
||||
bindObject(dataBind, null, Types.OTHER);
|
||||
return null;
|
||||
|
||||
} else {
|
||||
|
||||
@@ -163,6 +164,7 @@ public class Binder {
|
||||
|
||||
int dbType = type.getJdbcType();
|
||||
bindObject(dataBind, value, dbType);
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user