pdo-debug icon indicating copy to clipboard operation
pdo-debug copied to clipboard

Example from readme is invalid

Open fliespl opened this issue 4 years ago • 0 comments

You are not taking types into consideration.

Your example from readme is actually "seen" by database general_log as:

INSERT INTO test (col1, col2, col3) VALUES ('hello', '123', NULL) - notice apostrophes around 123.

This due to the fact that when no type is assigned to variable it's being used as PARAM_STR in PDO.

fliespl avatar Jul 16 '21 09:07 fliespl