summaryrefslogtreecommitdiff
path: root/ext/mysql/tests/mysql_field_flags.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql/tests/mysql_field_flags.phpt')
-rw-r--r--ext/mysql/tests/mysql_field_flags.phpt8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/mysql/tests/mysql_field_flags.phpt b/ext/mysql/tests/mysql_field_flags.phpt
index 6489affc16..e07e041d2a 100644
--- a/ext/mysql/tests/mysql_field_flags.phpt
+++ b/ext/mysql/tests/mysql_field_flags.phpt
@@ -81,13 +81,17 @@ $tables = array(
array('label1', sprintf("'%s'", @date("Y-m-d H:i:s"))),
'label1' => array(
'timestamp',
- 'unsigned',
- 'zerofill',
'binary',
'not_null'),
),
);
+if ($version < 560) {
+ $tables['label1 TIMESTAMP']['label1'][] = 'zerofill';
+ $tables['label1 TIMESTAMP']['label1'][] = 'unsigned';
+}
+
+
foreach ($tables as $columns => $expected) {
if (!mysql_query("DROP TABLE IF EXISTS test", $link)) {
printf("[010/%s] [%d] %s\n", $columns, mysql_errno($link), mysql_error($link));