File: lp959512.result

package info (click to toggle)
mariadb 1%3A11.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 765,428 kB
  • sloc: ansic: 2,382,827; cpp: 1,803,532; asm: 378,315; perl: 63,176; sh: 46,496; pascal: 40,776; java: 39,363; yacc: 20,428; python: 19,506; sql: 17,864; xml: 12,463; ruby: 8,544; makefile: 6,059; cs: 5,855; ada: 1,700; lex: 1,193; javascript: 1,039; objc: 80; tcl: 73; awk: 46; php: 22
file content (26 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
connection node_2;
connection node_1;
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;