File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2111,9 +2111,10 @@ static PHP_METHOD(PDOStatement, debugDumpParams)
2111
2111
/* show parsed SQL if emulated prepares enabled */
2112
2112
/* pointers will be equal if PDO::query() was invoked */
2113
2113
if (stmt -> active_query_string != NULL && stmt -> active_query_string != stmt -> query_string ) {
2114
- php_stream_printf (out , "Sent SQL: [%zd] %.*s\n" ,
2115
- stmt -> active_query_stringlen ,
2116
- (int ) stmt -> active_query_stringlen , stmt -> active_query_string );
2114
+ /* break into multiple operations so query string won't be truncated at FORMAT_CONV_MAX_PRECISION */
2115
+ php_stream_printf (out , "Sent SQL: [%zd] " , stmt -> active_query_stringlen );
2116
+ php_stream_write (out , stmt -> active_query_string , stmt -> active_query_stringlen );
2117
+ php_stream_write (out , "\n" , 1 );
2117
2118
}
2118
2119
2119
2120
php_stream_printf (out , "Params: %d\n" ,
You can’t perform that action at this time.
0 commit comments