Plugin Directory

Changeset 3071334

Timestamp:
04/16/2024 07:28:37 AM (4 months ago)
Author:
aristath
Message:

v2.1.9

Location:
sqlite-database-integration/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sqlite-database-integration/trunk/load.php

    r3068813 r3071334  
    44 * Description: SQLite database driver drop-in.
    55 * Author: The WordPress Team
    6  * Version: 2.1.8
     6 * Version: 2.1.
    77 * Requires PHP: 7.0
    88 * Textdomain: sqlite-database-integration
  • sqlite-database-integration/trunk/readme.txt

    r3068813 r3071334  
    55Tested up to:      6.4
    66Requires PHP:      5.6
    7 Stable tag:        2.1.8
     7Stable tag:        2.1.
    88License:           GPLv2 or later
    99License URI:       https://www.gnu.org/licenses/gpl-2.0.html
  • sqlite-database-integration/trunk/wp-includes/sqlite/class-wp-sqlite-translator.php

    r3068813 r3071334  
    10411041        $result->sqlite_data_type = '';
    10421042        $result->not_null         = false;
    1043         $result->default          = null;
     1043        $result->default          = ;
    10441044        $result->auto_increment   = false;
    10451045        $result->primary_key      = false;
     
    11291129         * SQLite does not support this behavior, so we need to add the `ON CONFLICT REPLACE` clause to the column definition.
    11301130         */
    1131         if (null !== $field->default && $field->not_null) {
     1131        if ($field->not_null) {
    11321132            $definition .= ' ON CONFLICT REPLACE';
    11331133        }
    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) {
    11351140            $definition .= ' DEFAULT ' . $field->default;
     1141
     1142
     1143
     1144
     1145
     1146
     1147
     1148
     1149
    11361150        }
    11371151
Note: See TracChangeset for help on using the changeset viewer.