aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2014-07-22 00:08:07 +0530
committerDhruv Goel <dhruv.goel92@gmail.com>2014-07-22 00:08:07 +0530
commit1c8357a1cba79ed490d7bebda59c67ea3c2bda46 (patch)
tree21c3ef42a3fcdf7272183b6de4057efb1f2847ab /tests
parent449ffbe7992bcda2f28ceaf861329e913575149a (diff)
parent4917ebe93a7490d814848f2ce6a5c80343599dcf (diff)
downloadforums-1c8357a1cba79ed490d7bebda59c67ea3c2bda46.tar
forums-1c8357a1cba79ed490d7bebda59c67ea3c2bda46.tar.gz
forums-1c8357a1cba79ed490d7bebda59c67ea3c2bda46.tar.bz2
forums-1c8357a1cba79ed490d7bebda59c67ea3c2bda46.tar.xz
forums-1c8357a1cba79ed490d7bebda59c67ea3c2bda46.zip
Merge pull request #2651 from nickvergessen/ticket/12448
[ticket/12448] Allow null as default value for columns
Diffstat (limited to 'tests')
-rw-r--r--tests/dbal/db_tools_test.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/dbal/db_tools_test.php b/tests/dbal/db_tools_test.php
index f3c6888c8d..6cc2f8ec0f 100644
--- a/tests/dbal/db_tools_test.php
+++ b/tests/dbal/db_tools_test.php
@@ -46,6 +46,7 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
'c_bool' => array('BOOL', 1),
'c_vchar' => array('VCHAR', 'foo'),
'c_vchar_size' => array('VCHAR:4', 'foo'),
+ 'c_vchar_null' => array('VCHAR', null),
'c_char_size' => array('CHAR:4', 'foo'),
'c_xstext' => array('XSTEXT', 'foo'),
'c_stext' => array('STEXT', 'foo'),
@@ -111,6 +112,7 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
'c_bool' => 0,
'c_vchar' => '',
'c_vchar_size' => '',
+ 'c_vchar_null' => null,
'c_char_size' => 'abcd',
'c_xstext' => '',
'c_stext' => '',
@@ -144,6 +146,7 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
array('c_bool', 0),
array('c_vchar', str_repeat('a', 255)),
array('c_vchar_size', str_repeat('a', 4)),
+ array('c_vchar_null', str_repeat('a', 4)),
array('c_char_size', str_repeat('a', 4)),
array('c_xstext', str_repeat('a', 1000)),
array('c_stext', str_repeat('a', 3000)),