mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
1d63e924d7
Changed TRUNCATE table_name -> TRUNCATE TABLE table_name Docs/manual.texi: Changed TRUNCATE table_name -> TRUNCATE TABLE table_name client/mysql.cc: Don't crash when using -q with long fields include/my_net.h: Portability fix mysql-test/t/truncate.test: Changed TRUNCATE table_name -> TRUNCATE TABLE table_name readline/input.c: Portability fix scripts/make_binary_distribution.sh: Portability fix sql-bench/crash-me.sh: Portability fix sql/mini_client.cc: Portability fix sql/mysqld.cc: cleanup sql/share/dutch/errmsg.txt: Fixed typo sql/share/english/errmsg.txt: Fixed typo sql/share/greek/errmsg.txt: Fixed typo sql/share/hungarian/errmsg.txt: Fixed typo sql/share/italian/errmsg.txt: New translated messages sql/share/portuguese/errmsg.txt: Fixed typo sql/share/romanian/errmsg.txt: Fixed typo sql/share/slovak/errmsg.txt: Fixed typo sql/share/spanish/errmsg.txt: Fixed typo sql/sql_yacc.yy: Changed TRUNCATE table_name -> TRUNCATE TABLE table_name support-files/Makefile.am: Portability fix
11 lines
254 B
Text
11 lines
254 B
Text
#
|
|
# Test of truncate
|
|
#
|
|
create table t1 (a integer, b integer,c1 CHAR(10));
|
|
truncate table t1;
|
|
select count(*) from t1;
|
|
insert into t1 values(1,2,"test");
|
|
select count(*) from t1;
|
|
drop table t1;
|
|
# The following should fail
|
|
!$1146 select count(*) from t1;
|