rfc:mysqli_execute_query
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:mysqli_execute_query [2022/04/28 16:00] – Inline SQL, as the $sql variable is odd when not used with concat example (thanks Guilliam) craigfrancis | rfc:mysqli_execute_query [2022/08/04 13:28] (current) – Target Version: PHP 8.2 dharman | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: MySQLi Execute Query ====== | ====== PHP RFC: MySQLi Execute Query ====== | ||
- | * Version: | + | * Version: 1 |
- | * Voting Start: ? | + | |
- | * Voting End: ? | + | |
* RFC Started: 2022-04-21 | * RFC Started: 2022-04-21 | ||
- | * RFC Updated: 2022-04-21 | + | * RFC Updated: 2022-05-11 |
+ | * Voting Start: 2022-05-11 15:00 UTC / 16:00 BST | ||
+ | * Voting End: 2022-05-25 15:00 UTC / 16:00 BST | ||
* Author: Kamil Tekiela, and Craig Francis [craig# | * Author: Kamil Tekiela, and Craig Francis [craig# | ||
- | * Status: | + | * Status: |
+ | * Target Version: PHP 8.2 | ||
* First Published at: https:// | * First Published at: https:// | ||
* GitHub Repo: https:// | * GitHub Repo: https:// | ||
Line 106: | Line 107: | ||
==== Returning false ==== | ==== Returning false ==== | ||
- | Because the implementation is effectively calling [[https:// | + | The implementation is effectively calling [[https:// |
+ | |||
+ | ==== Properties ==== | ||
+ | |||
+ | Because [[https:// | ||
+ | |||
+ | - int|string **$affected_rows** - use // | ||
+ | - int|string **$insert_id** - use // | ||
+ | - int|string **$num_rows** - also available on // | ||
+ | - int **$param_count** | ||
+ | - int **$field_count** - also available on // | ||
+ | - int **$errno** - use // | ||
+ | - string **$error** - use // | ||
+ | - array **$error_list** - use // | ||
+ | - string **$sqlstate** - use // | ||
+ | - int **$id** | ||
+ | |||
+ | It's also worth noting the error property usage will hopefully reduce, as more developers use // | ||
==== Re-using Statements ==== | ==== Re-using Statements ==== | ||
- | The implementation discards the // | + | The implementation discards the // |
==== Updating Existing Functions ==== | ==== Updating Existing Functions ==== | ||
- | Cannot change // | + | Cannot change // |
Cannot replace the deprecated // | Cannot replace the deprecated // | ||
Line 154: | Line 172: | ||
===== Open Issues ===== | ===== Open Issues ===== | ||
- | ==== Affected Rows ==== | + | None |
- | + | ||
- | Currently // | + | |
- | + | ||
- | ==== Properties ==== | + | |
- | + | ||
- | Because [[https:// | + | |
- | + | ||
- | - int|string **$affected_rows** - see above | + | |
- | - int|string **$insert_id** - can use // | + | |
- | - int|string **$num_rows** - also available on // | + | |
- | - int **$param_count** | + | |
- | - int **$field_count** - also available on // | + | |
- | - int **$errno** - can use // | + | |
- | - string **$error** - can use // | + | |
- | - array **$error_list** - can use // | + | |
- | - string **$sqlstate** - can use // | + | |
- | - int **$id** | + | |
===== Unaffected PHP Functionality ===== | ===== Unaffected PHP Functionality ===== | ||
Line 185: | Line 186: | ||
Accept the RFC | Accept the RFC | ||
- | TODO | + | <doodle title=" |
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Implementation ===== | ===== Implementation ===== | ||
[[https:// | [[https:// | ||
+ | |||
+ | This implementation copies some details to the mysqli object, but not the affected rows. This means // | ||
===== References ===== | ===== References ===== | ||
Line 197: | Line 203: | ||
===== Rejected Features ===== | ===== Rejected Features ===== | ||
- | TODO | + | None |
rfc/mysqli_execute_query.1651161613.txt.gz · Last modified: 2022/04/28 16:00 by craigfrancis