Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaurĂ­cio Meneghini Fauth <mauricio@fauth.dev>2022-08-19 05:33:11 +0300
committerGitHub <noreply@github.com>2022-08-19 05:33:11 +0300
commit9c3ce37491a20e06e582aa1c67b4480b5cd9aff2 (patch)
treee564afd54d28fe114c363293c7e6e4fcee2648ab /test
parentfd8f46425a7201658ec8cc658f0a84cbed55d6b5 (diff)
parentfc932a9a8f40cb696a6af6a098a79209a6e7aa8d (diff)
Merge pull request #17686 from kamil-tekiela/Allow-fields-to-be-set-to-null
Allow fields to be set to NULL
Diffstat (limited to 'test')
-rw-r--r--test/classes/InsertEditTest.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/classes/InsertEditTest.php b/test/classes/InsertEditTest.php
index 13ee204b74..590fa810d3 100644
--- a/test/classes/InsertEditTest.php
+++ b/test/classes/InsertEditTest.php
@@ -2143,6 +2143,30 @@ class InsertEditTest extends AbstractTestCase
],
$result
);
+
+ // Test to see if a field can be set to NULL
+ $result = $this->insertEdit->getQueryValuesForInsertAndUpdateInMultipleEdit(
+ $multi_edit_columns_name,
+ ['on'],
+ '',
+ [''],
+ [],
+ false,
+ [],
+ [],
+ 'NULL',
+ [],
+ '0',
+ []
+ );
+
+ $this->assertEquals(
+ [
+ ['`fld` = NULL'],
+ [],
+ ],
+ $result
+ );
}
/**