Pdo: V20 Extended Features

Now, when a deadlock occurs, PDO automatically re-executes the transaction without manual loops.

PDO now throws PDOException with richer context: pdo v20 extended features

Use PDO::PARAM_JSON to ensure your data is correctly encoded and decoded without manual json_encode calls. Now, when a deadlock occurs, PDO automatically re-executes

Additionally, support for complex types such as JSON, array (PostgreSQL), and date intervals is built-in. The new PDO::ATTR_TYPE_MAP allows customization of how database types are converted, including support for custom PHP enumerations (backed by string or int). when a deadlock occurs

>