mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	- Print warning that says display width is not supported for datatype TIMESTAMP, if user tries to create a TIMESTAMP column with display width. - Use display width for TIMESTAMP only in type_timestamp test to make sure warning is displayed correctly. mysql-test/include/ps_create.inc: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/alias.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/func_date_add.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/func_str.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/func_time.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/group_by.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/innodb.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/ps.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/ps_1general.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/ps_2myisam.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/ps_3innodb.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/ps_4heap.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/ps_5merge.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/ps_6bdb.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/ps_7ndb.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/select.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/r/type_timestamp.result: When display width is used for a TIMESTAMP column a warning is printed that the display width will be ignored. mysql-test/r/update.result: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/t/alias.test: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/t/func_date_add.test: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/t/func_str.test: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/t/func_time.test: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/t/group_by.test: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/t/innodb.test: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/t/ps.test: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/t/ps_4heap.test: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/t/ps_5merge.test: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/t/select.test: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. mysql-test/t/update.test: Reove all uses of display width in for TIMESTAMP columns, except in the type_timestamp test. sql/share/errmsg.txt: Correct swedish error message sql/sql_parse.cc: Print warning if datatype is TIMESTAMP and display width is used.
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
############### include/ps_create.inc ##################
 | 
						|
#                                                      #
 | 
						|
#  drop + create the tables used in most PS test cases #
 | 
						|
#         t/ps_*.test                                  #
 | 
						|
#                                                      #
 | 
						|
########################################################
 | 
						|
 | 
						|
#    
 | 
						|
# NOTE: PLEASE SEE ps_1general.test (bottom) 
 | 
						|
#       BEFORE ADDING NEW TABLES HERE !!!
 | 
						|
#
 | 
						|
# Please be aware, that this file will be sourced by several
 | 
						|
# test case files stored within the subdirectory 't'.
 | 
						|
# So every change here will affect several test cases.
 | 
						|
 | 
						|
#----------- Please insert your table definitions here ----------#
 | 
						|
 | 
						|
 | 
						|
#---- Please do not alter the following table definitions -------#
 | 
						|
 | 
						|
--disable_warnings
 | 
						|
drop table if exists t1, t9 ;
 | 
						|
--enable_warnings
 | 
						|
 | 
						|
eval create table t1
 | 
						|
(
 | 
						|
  a int, b varchar(30),
 | 
						|
  primary key(a)
 | 
						|
) engine = $type ;
 | 
						|
 | 
						|
eval create table t9 
 | 
						|
(
 | 
						|
  c1  tinyint, c2  smallint, c3  mediumint, c4  int,
 | 
						|
  c5  integer, c6  bigint, c7  float, c8  double,
 | 
						|
  c9  double precision, c10 real, c11 decimal(7, 4), c12 numeric(8, 4),
 | 
						|
  c13 date, c14 datetime, c15 timestamp, c16 time,
 | 
						|
  c17 year, c18 tinyint, c19 bool, c20 char,
 | 
						|
  c21 char(10), c22 varchar(30), c23 tinyblob, c24 tinytext,
 | 
						|
  c25 blob, c26 text, c27 mediumblob, c28 mediumtext,
 | 
						|
  c29 longblob, c30 longtext, c31 enum('one', 'two', 'three'),
 | 
						|
  c32 set('monday', 'tuesday', 'wednesday'),
 | 
						|
  primary key(c1)
 | 
						|
) engine = $type ;
 |