File: lp959512.result

package info (click to toggle)
mariadb-10.1 10.1.45-0%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 476,916 kB
  • sloc: cpp: 1,124,656; ansic: 871,843; perl: 52,917; sh: 40,078; pascal: 35,370; javascript: 15,555; yacc: 14,728; ruby: 8,684; xml: 5,377; sql: 3,490; makefile: 2,934; python: 1,970; java: 1,691; asm: 837; lex: 757; php: 22; sed: 16
file content (24 lines) | stat: -rw-r--r-- 840 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DROP TABLE IF EXISTS variable;
Warnings:
Note	1051	Unknown table 'test.variable'
DROP TABLE IF EXISTS foo;
Warnings:
Note	1051	Unknown table 'test.foo'
CREATE TABLE variable (
name varchar(128) NOT NULL DEFAULT '' COMMENT 'The name of the variable.',
value longblob NOT NULL COMMENT 'The value of the variable.',
PRIMARY KEY (name)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Named variable/value pairs created by Drupal core or any...';
CREATE TABLE foo (a int);
INSERT INTO variable (name, value) VALUES ('menu_expanded', 'a:0:{}');
START TRANSACTION;
SELECT 1 AS expression FROM variable variable
WHERE ( (name = 'menu_expanded') ) FOR UPDATE;
expression
1
UPDATE variable SET value='a:0:{}' WHERE ( (name = 'menu_expanded') );
COMMIT;
INSERT INTO foo VALUES (1);
UPDATE foo SET a = 2 WHERE a = 1;
DROP TABLE foo;
DROP TABLE variable;