Changeset 3071334
- Timestamp:
- 04/16/2024 07:28:37 AM (4 months ago)
- Location:
- sqlite-database-integration/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sqlite-database-integration/trunk/load.php
r3068813 r3071334 4 4 * Description: SQLite database driver drop-in. 5 5 * Author: The WordPress Team 6 * Version: 2.1. 86 * Version: 2.1. 7 7 * Requires PHP: 7.0 8 8 * Textdomain: sqlite-database-integration -
sqlite-database-integration/trunk/readme.txt
r3068813 r3071334 5 5 Tested up to: 6.4 6 6 Requires PHP: 5.6 7 Stable tag: 2.1. 87 Stable tag: 2.1. 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
sqlite-database-integration/trunk/wp-includes/sqlite/class-wp-sqlite-translator.php
r3068813 r3071334 1041 1041 $result->sqlite_data_type = ''; 1042 1042 $result->not_null = false; 1043 $result->default = null;1043 $result->default = ; 1044 1044 $result->auto_increment = false; 1045 1045 $result->primary_key = false; … … 1129 1129 * SQLite does not support this behavior, so we need to add the `ON CONFLICT REPLACE` clause to the column definition. 1130 1130 */ 1131 if ( null !== $field->default &&$field->not_null) {1131 if ($field->not_null) { 1132 1132 $definition .= ' ON CONFLICT REPLACE'; 1133 1133 } 1134 if ( null !== $field->default ) { 1134 /** 1135 * The value of DEFAULT can be NULL. PHP would print this as an empty string, so we need a special case for it. 1136 */ 1137 if (null === $field->default) { 1138 $definition .= ' DEFAULT NULL'; 1139 } else if (false !== $field->default) { 1135 1140 $definition .= ' DEFAULT ' . $field->default; 1141 1142 1143 1144 1145 1146 1147 1148 1149 1136 1150 } 1137 1151
Note: See TracChangeset
for help on using the changeset viewer.