3131import java .util .Arrays ;
3232import java .util .HashSet ;
3333import java .util .List ;
34+ import java .util .Objects ;
3435import java .util .Set ;
3536import java .util .function .Predicate ;
3637import java .util .regex .Matcher ;
@@ -74,13 +75,15 @@ public ExtendedQueryPostgresqlStatement bind(String identifier, Object value) {
7475 Assert .requireNonNull (identifier , "identifier must not be null" );
7576 Assert .requireType (identifier , String .class , "identifier must be a String" );
7677
78+ BindingLogger .logBinding (identifier , Objects .toString (value ));
7779 return bind (getIndex (identifier ), value );
7880 }
7981
8082 @ Override
8183 public ExtendedQueryPostgresqlStatement bind (int index , Object value ) {
8284 Assert .requireNonNull (value , "value must not be null" );
8385
86+ BindingLogger .logBinding (index , Objects .toString (value ));
8487 this .bindings .getCurrent ().add (index , this .context .getCodecs ().encode (value ));
8588
8689 return this ;
@@ -92,6 +95,7 @@ public ExtendedQueryPostgresqlStatement bindNull(String identifier, Class<?> typ
9295 Assert .requireType (identifier , String .class , "identifier must be a String" );
9396 Assert .requireNonNull (type , "type must not be null" );
9497
98+ BindingLogger .logBinding (identifier , "null of type " + type .getName ());
9599 bindNull (getIndex (identifier ), type );
96100 return this ;
97101 }
@@ -100,6 +104,7 @@ public ExtendedQueryPostgresqlStatement bindNull(String identifier, Class<?> typ
100104 public ExtendedQueryPostgresqlStatement bindNull (int index , Class <?> type ) {
101105 Assert .requireNonNull (type , "type must not be null" );
102106
107+ BindingLogger .logBinding (index , "null of type " + type .getName ());
103108 this .bindings .getCurrent ().add (index , this .context .getCodecs ().encodeNull (type ));
104109 return this ;
105110 }
0 commit comments