31
31
import java .util .Arrays ;
32
32
import java .util .HashSet ;
33
33
import java .util .List ;
34
+ import java .util .Objects ;
34
35
import java .util .Set ;
35
36
import java .util .function .Predicate ;
36
37
import java .util .regex .Matcher ;
@@ -74,13 +75,15 @@ public ExtendedQueryPostgresqlStatement bind(String identifier, Object value) {
74
75
Assert .requireNonNull (identifier , "identifier must not be null" );
75
76
Assert .requireType (identifier , String .class , "identifier must be a String" );
76
77
78
+ BindingLogger .logBinding (identifier , Objects .toString (value ));
77
79
return bind (getIndex (identifier ), value );
78
80
}
79
81
80
82
@ Override
81
83
public ExtendedQueryPostgresqlStatement bind (int index , Object value ) {
82
84
Assert .requireNonNull (value , "value must not be null" );
83
85
86
+ BindingLogger .logBinding (index , Objects .toString (value ));
84
87
this .bindings .getCurrent ().add (index , this .context .getCodecs ().encode (value ));
85
88
86
89
return this ;
@@ -92,6 +95,7 @@ public ExtendedQueryPostgresqlStatement bindNull(String identifier, Class<?> typ
92
95
Assert .requireType (identifier , String .class , "identifier must be a String" );
93
96
Assert .requireNonNull (type , "type must not be null" );
94
97
98
+ BindingLogger .logBinding (identifier , "null of type " + type .getName ());
95
99
bindNull (getIndex (identifier ), type );
96
100
return this ;
97
101
}
@@ -100,6 +104,7 @@ public ExtendedQueryPostgresqlStatement bindNull(String identifier, Class<?> typ
100
104
public ExtendedQueryPostgresqlStatement bindNull (int index , Class <?> type ) {
101
105
Assert .requireNonNull (type , "type must not be null" );
102
106
107
+ BindingLogger .logBinding (index , "null of type " + type .getName ());
103
108
this .bindings .getCurrent ().add (index , this .context .getCodecs ().encodeNull (type ));
104
109
return this ;
105
110
}
0 commit comments