~mathiaz/ubuntu/lucid/mysql-dfsg-5.1/zap-bug-552053

« back to all changes in this revision

Viewing changes to mysql-test/r/log_tables.result

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-06-25 12:55:45 UTC
  • mfrom: (1.1.2 upstream) (0.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20090625125545-m8ogs96zzsri74xe
Tags: 5.1.34-1ubuntu1
* Merge from debian experimental (and 5.0 from main), remaining changes:
  - debian/mysql-server-5.1.config:
    + ask for MySQL root password at priority high instead of medium so
      that the password prompt is seen on a default install. (LP: #319843)
    + don't ask for root password when upgrading from a 5.0 install.
  - debian/control:
    + Make libmysqlclient16-dev a transitional package depending on
      libmysqlclient-dev.
    + Make libmysqlclient-dev conflict with libmysqlclient15-dev.
    + Don't build mysql-server, mysql-client, mysql-common and
      libmysqlclient15-dev binary packages since they're still provided
      by mysql-dfsg-5.0.
    + Make mysql-{client,server}-5.1 packages conflict and
      replace mysql-{client,server}-5.0, but not provide
      mysql-{client,server}.
    + Depend on a specific version of mysql-common rather than the src
      version of mysql-dfsg-5.1 since mysql-common is currently part of
      mysql-dfsg-5.0.
    + Lower mailx from a Recommends to a Suggests to avoid pulling in
      a full MTA on all installs of mysql-server. (LP: #259477)
  - debian/rules:
    + added -fno-strict-aliasing to CFLAGS to get around mysql testsuite
      build failures.
    + install mysql-test and sql-bench to /usr/share/mysql/ rather than
      /usr/.
  - debian/additions/debian-start.inc.sh: support ANSI mode (LP: #310211)
  - Add AppArmor profile:
    - debian/apparmor-profile: apparmor profile.
    - debian/rules, debian/mysql-server-5.0.files: install apparmor profile.
    - debian/mysql-server-5.0.dirs: add etc/apparmor.d/force-complain
    - debian/mysql-server-5.0.postrm: remove symlink in force-complain/ on
      purge.
    - debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    - debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    - debian/mysql-server-5.1.postinst: reload apparmor profiles.
  - debian/additions/my.cnf: remove language option. Error message files are
    located in a different directory in MySQL 5.0. Setting the language
    option to use /usr/share/mysql/english breaks 5.0. Both 5.0 and 5.1
    use a default value that works. (LP: #316974)
  - debian/mysql-server-5.1.mysql.init:
    + Clearly indicate that we do not support running multiple instances
      of mysqld by duplicating the init script.
      (closes: #314785, #324834, #435165, #444216)
    + Properly parameterize all existing references to the mysql config
      file (/etc/mysql/my.cnf).
  - debian/mysql-server-5.0.postinst: Clear out the second password
    when setting up mysql. (LP: #344816)
  - mysql-server-core-5.1 package for files needed by Akonadi:
    + debian/control: create mysql-server-core-5.1 package.
    + debian/mysql-server-core-5.1.files, debian/mysql-server-5.1.files:
      move core mysqld files to mysql-server-core-5.1 package.
  - Don't package sql-bench and mysql-test file.
* Dropped changes:
  - debian/patches/92_ssl_test_cert.dpatch: certificate expiration in
    test suite (LP: #323755). Included upstream.
* Dropped from 5.0:
  - apparmor profile:
    - debian/control: Recommends apparmor >= 2.1+1075-0ubuntu6. All version
      of apparmor-profile (>hardy) are higher than this version.
    - debian/mysql-server-5.0.preinst: create symlink for force-complain/
      on pre-feisty upgrades, upgrades where apparmor-profiles profile is
      unchanged (ie non-enforcing) and upgrades where the profile
      doesn't exist. Support for pre-hardy upgrades is no longer needed.
* debian/mysql-server-5.1.postinst: fix debian-sys-maint user creation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SET @old_general_log_state = @@global.general_log;
 
2
SET @old_log_output=       @@global.log_output;
 
3
SET @old_slow_query_log=   @@global.slow_query_log;
 
4
SET @old_general_log=      @@global.general_log;
 
5
SET @old_long_query_time=  @@session.long_query_time;
1
6
use mysql;
2
7
SET @saved_long_query_time = @@long_query_time;
3
8
SET @saved_log_output = @@log_output;
51
56
  `event_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
52
57
  `user_host` mediumtext NOT NULL,
53
58
  `thread_id` int(11) NOT NULL,
54
 
  `server_id` int(11) NOT NULL,
 
59
  `server_id` int(10) unsigned NOT NULL,
55
60
  `command_type` varchar(64) NOT NULL,
56
61
  `argument` mediumtext NOT NULL
57
62
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
60
65
event_time      timestamp       NO              CURRENT_TIMESTAMP       on update CURRENT_TIMESTAMP
61
66
user_host       mediumtext      NO              NULL    
62
67
thread_id       int(11) NO              NULL    
63
 
server_id       int(11) NO              NULL    
 
68
server_id       int(10) unsigned        NO              NULL    
64
69
command_type    varchar(64)     NO              NULL    
65
70
argument        mediumtext      NO              NULL    
66
71
show create table mysql.slow_log;
75
80
  `db` varchar(512) NOT NULL,
76
81
  `last_insert_id` int(11) NOT NULL,
77
82
  `insert_id` int(11) NOT NULL,
78
 
  `server_id` int(11) NOT NULL,
 
83
  `server_id` int(10) unsigned NOT NULL,
79
84
  `sql_text` mediumtext NOT NULL
80
85
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'
81
86
show fields from mysql.slow_log;
89
94
db      varchar(512)    NO              NULL    
90
95
last_insert_id  int(11) NO              NULL    
91
96
insert_id       int(11) NO              NULL    
92
 
server_id       int(11) NO              NULL    
 
97
server_id       int(10) unsigned        NO              NULL    
93
98
sql_text        mediumtext      NO              NULL    
94
99
flush logs;
95
100
flush tables;
162
167
  `event_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
163
168
  `user_host` mediumtext NOT NULL,
164
169
  `thread_id` int(11) NOT NULL,
165
 
  `server_id` int(11) NOT NULL,
 
170
  `server_id` int(10) unsigned NOT NULL,
166
171
  `command_type` varchar(64) NOT NULL,
167
172
  `argument` mediumtext NOT NULL
168
173
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
178
183
  `db` varchar(512) NOT NULL,
179
184
  `last_insert_id` int(11) NOT NULL,
180
185
  `insert_id` int(11) NOT NULL,
181
 
  `server_id` int(11) NOT NULL,
 
186
  `server_id` int(10) unsigned NOT NULL,
182
187
  `sql_text` mediumtext NOT NULL
183
188
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'
184
189
alter table mysql.general_log engine=myisam;
189
194
  `event_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
190
195
  `user_host` mediumtext NOT NULL,
191
196
  `thread_id` int(11) NOT NULL,
192
 
  `server_id` int(11) NOT NULL,
 
197
  `server_id` int(10) unsigned NOT NULL,
193
198
  `command_type` varchar(64) NOT NULL,
194
199
  `argument` mediumtext NOT NULL
195
200
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='General log'
205
210
  `db` varchar(512) NOT NULL,
206
211
  `last_insert_id` int(11) NOT NULL,
207
212
  `insert_id` int(11) NOT NULL,
208
 
  `server_id` int(11) NOT NULL,
 
213
  `server_id` int(10) unsigned NOT NULL,
209
214
  `sql_text` mediumtext NOT NULL
210
215
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Slow log'
211
216
set global general_log='ON';
263
268
ON UPDATE CURRENT_TIMESTAMP,
264
269
`user_host` mediumtext NOT NULL,
265
270
`thread_id` int(11) NOT NULL,
266
 
`server_id` int(11) NOT NULL,
 
271
`server_id` int(10) unsigned NOT NULL,
267
272
`command_type` varchar(64) NOT NULL,
268
273
`argument` mediumtext NOT NULL
269
274
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log';
278
283
`db` varchar(512) NOT NULL,
279
284
`last_insert_id` int(11) NOT NULL,
280
285
`insert_id` int(11) NOT NULL,
281
 
`server_id` int(11) NOT NULL,
 
286
`server_id` int(10) unsigned NOT NULL,
282
287
`sql_text` mediumtext NOT NULL
283
288
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log';
284
289
set global general_log='ON';
432
437
FLUSH LOGS;
433
438
ALTER TABLE mysql.slow_log DROP COLUMN seq;
434
439
ALTER TABLE mysql.slow_log ENGINE = CSV;
435
 
SET GLOBAL slow_query_log = @saved_slow_query_log;
 
440
SET GLOBAL general_log = @old_general_log;
 
441
SET GLOBAL slow_query_log = @old_slow_query_log;
436
442
drop procedure if exists proc25422_truncate_slow;
437
443
drop procedure if exists proc25422_truncate_general;
438
444
drop procedure if exists proc25422_alter_slow;
623
629
DROP PROCEDURE IF EXISTS `db_17876.archiveSlowLog`;
624
630
DROP PROCEDURE IF EXISTS `db_17876.archiveGeneralLog`;
625
631
DROP DATABASE IF EXISTS `db_17876`;
626
 
SET GLOBAL general_log = @saved_general_log;
627
 
SET GLOBAL slow_query_log = @saved_slow_query_log;
 
632
SET GLOBAL general_log = @old_general_log;
 
633
SET GLOBAL slow_query_log = @old_slow_query_log;
628
634
select CONNECTION_ID() into @thread_id;
629
635
truncate table mysql.general_log;
630
636
set global general_log = on;
840
846
Execute select '000 001 002 003 004 005 006 007 008 009010 011 012 013 014 015 016 017 018 019020 021 022 023 024 025 026 027 028 029030 031 032 033 034 035 036 037 038 039040 041 042 043 044 045 046 047 048 049050 051 052 053 054 055 056 057 058 059060 061 062 063 064 065 066 067 068 069070 071 072 073 074 075 076 077 078 079080 081 082 083 084 085 086 087 088 089090 091 092 093 094 095 096 097 098 099100 101 102 103 104 105 106 107 108 109110 111 112 113 114 115 116 117 118 119120 121 122 123 124 125 126 127 128 129130 131 132 133 134 135 136 137 138 139140 141 142 143 144 145 146 147 148 149150 151 152 153 154 155 156 157 158 159160 161 162 163 164 165 166 167 168 169170 171 172 173 174 175 176 177 178 179180 181 182 183 184 185 186 187 188 189190 191 192 193 194 195 196 197 198 199200 201 202 203 204 205 206 207 208 209210 211 212 213 214 215 216 217 218 219220 221 222 223 224 225 226 227 228 229230 231 232 233 234 235 236 237 238 239240 241 242 243 244 245 246 247 248 249250 251 252 253 254 255 256 257 258 259260 261 262 263 264 265 266 267 268 269270 271 272 273 274 275 276 277 278 279280 281 282 283 284 285 286 287 288 289290 291 292 293 294 295 296 297 298 299300 301 302 303 304 305 306 307 308 309310 311 312 313 314 315 316 317 318 319320 321 322 323 324 325 326 327 328 329330 331 332 333 334 335 336 337 338 339340 341 342 343 344 345 346 347 348 349350 351 352 353 354 355 356 357 358 359360 361 362 363 364 365 366 367 368 369370 371 372 373 374 375 376 377 378 379380 381 382 383 384 385 386 387 388 389390 391 392 393 394 395 396 397 398 399400 401 402 403 404 405 406 407 408 409410 411 412 413 414 415 416 417 418 419420 421 422 423 424 425 426 427 428 429430 431 432 433 434 435 436 437 438 439440 441 442 443 444 445 446 447 448 449450 451 452 453 454 455 456 457 458 459460 461 462 463 464 465 466 467 468 469470 471 472 473 474 475 476 477 478 479480 481 482 483 484 485 486 487 488 489490 491 492 493 494 495 496 497 498 499500 501 502 503 504 505 506 507 508 509510 511 512 513 514 515 516 517 518 519520 521 522 523 524 525 526 527 528 529530 531 532 533 534 535 536 537 538 539540 541 542 543 544 545 546 547 548 549550 551 552 553 554 555 556 557 558 559560 561 562 563 564 565 566 567 568 569570 571 572 573 574 575 576 577 578 579580 581 582 583 584 585 586 587 588 589590 591 592 593 594 595 596 597 598 599600 601 602 603 604 605 606 607 608 609610 611 612 613 614 615 616 617 618 619620 621 622 623 624 625 626 627 628 629630 631 632 633 634 635 636 637 638 639640 641 642 643 644 645 646 647 648 649650 651 652 653 654 655 656 657 658 659660 661 662 663 664 665 666 667 668 669670 671 672 673 674 675 676 677 678 679680 681 682 683 684 685 686 687 688 689690 691 692 693 694 695 696 697 698 699700 701 702 703 704 705 706 707 708 709710 711 712 713 714 715 716 717 718 719720 721 722 723 724 725 726 727 728 729730 731 732 733 734 735 736 737 738 739740 741 742 743 744 745 746 747 748 749750 751 752 753 754 755 756 757 758 759760 761 762 763 764 765 766 767 768 769770 771 772 773 774 775 776 777 778 779780 781 782 783 784 785 786 787 788 789790 791 792 793 794 795 796 797 798 799800 801 802 803 804 805 806 807 808 809810 811 812 813 814 815 816 817 818 819820 821 822 823 824 825 826 827 828 829830 831 832 833 834 835 836 837 838 839840 841 842 843 844 845 846 847 848 849850 851 852 853 854 855 856 857 858 859860 861 862 863 864 865 866 867 868 869870 871 872 873 874 875 876 877 878 879880 881 882 883 884 885 886 887 888 889890 891 892 893 894 895 896 897 898 899900 901 902 903 904 905 906 907 908 909910 911 912 913 914 915 916 917 918 919920 921 922 923 924 925 926 927 928 929930 931 932 933 934 935 936 937 938 939940 941 942 943 944 945 946 947 948 949950 951 952 953 954 955 956 957 958 959960 961 962 963 964 965 966 967 968 969970 971 972 973 974 975 976 977 978 979980 981 982 983 984 985 986 987 988 989990 991 992 993 994 995 996 997 998 999' as long_query
841
847
Query   set global general_log = off
842
848
deallocate prepare long_query;
843
 
set global general_log = @saved_general_log;
 
849
set global general_log = @old_general_log;
844
850
DROP TABLE IF EXISTS log_count;
845
851
DROP TABLE IF EXISTS slow_log_copy;
846
852
DROP TABLE IF EXISTS general_log_copy;
893
899
TIMESTAMP       1       1       SELECT SQL_NO_CACHE 'Bug#31700 - PK',  f1,f2,f3,SLEEP(1.1) FROM t1 WHERE f1=2
894
900
DROP TABLE t1;
895
901
TRUNCATE TABLE mysql.slow_log;
896
 
SET GLOBAL slow_query_log = @saved_slow_query_log;
897
 
SET GLOBAL general_log=@saved_general_log;
898
 
SET SESSION long_query_time =@saved_long_query_time;
899
 
SET GLOBAL LOG_OUTPUT = @saved_log_output;
 
902
SET @@session.long_query_time= @old_long_query_time;
 
903
SET @@global.log_output=       @old_log_output;
 
904
SET @@global.slow_query_log=   @old_slow_query_log;
 
905
SET @@global.general_log=      @old_general_log;