mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2025-08-02 11:04:26 +02:00
update expected results for create table tests with protected names
This commit is contained in:
@@ -281,7 +281,7 @@ class AlterTableSQLRewriter extends AbstractSQLRewriter
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Replace protected column names with quoted versions within columns and keys part
|
// Replace protected column names with quoted versions within columns and keys part
|
||||||
$columnsAndKeys = preg_replace_callback($regex, $callback, $columnsAndKeys, 1);
|
$columnsAndKeys = preg_replace_callback($regex, $callback, $columnsAndKeys);
|
||||||
return $prefix . $columnsAndKeys . $suffix;
|
return $prefix . $columnsAndKeys . $suffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -152,7 +152,7 @@ class CreateTableSQLRewriter extends AbstractSQLRewriter
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Replace protected column names with quoted versions within columns and keys part
|
// Replace protected column names with quoted versions within columns and keys part
|
||||||
$columnsAndKeys = preg_replace_callback($regex, $callback, $columnsAndKeys, 1);
|
$columnsAndKeys = preg_replace_callback($regex, $callback, $columnsAndKeys);
|
||||||
return $prefix . $columnsAndKeys . $suffix;
|
return $prefix . $columnsAndKeys . $suffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -114,7 +114,7 @@ final class rewriteTest extends TestCase
|
|||||||
CREATE TABLE IF NOT EXISTS wp_itsec_dashboard_lockouts (
|
CREATE TABLE IF NOT EXISTS wp_itsec_dashboard_lockouts (
|
||||||
id serial,
|
id serial,
|
||||||
ip varchar(40),
|
ip varchar(40),
|
||||||
time timestamp NOT NULL,
|
"time" timestamp NOT NULL,
|
||||||
count int NOT NULL,
|
count int NOT NULL,
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
@@ -184,7 +184,7 @@ final class rewriteTest extends TestCase
|
|||||||
CREATE TABLE IF NOT EXISTS wp_itsec_dashboard_lockouts (
|
CREATE TABLE IF NOT EXISTS wp_itsec_dashboard_lockouts (
|
||||||
id serial,
|
id serial,
|
||||||
ip varchar(40),
|
ip varchar(40),
|
||||||
time timestamp NOT NULL,
|
"time" timestamp NOT NULL,
|
||||||
count int NOT NULL,
|
count int NOT NULL,
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
@@ -222,8 +222,8 @@ final class rewriteTest extends TestCase
|
|||||||
"ID" bigserial,
|
"ID" bigserial,
|
||||||
ip varchar(60) NOT NULL,
|
ip varchar(60) NOT NULL,
|
||||||
created int,
|
created int,
|
||||||
timestamp int NOT NULL,
|
"timestamp" int NOT NULL,
|
||||||
date timestamp NOT NULL,
|
"date" timestamp NOT NULL,
|
||||||
referred text NOT NULL,
|
referred text NOT NULL,
|
||||||
agent varchar(255) NOT NULL,
|
agent varchar(255) NOT NULL,
|
||||||
platform varchar(255),
|
platform varchar(255),
|
||||||
@@ -264,7 +264,7 @@ final class rewriteTest extends TestCase
|
|||||||
page_id bigserial,
|
page_id bigserial,
|
||||||
uri varchar(190) NOT NULL,
|
uri varchar(190) NOT NULL,
|
||||||
type varchar(180) NOT NULL,
|
type varchar(180) NOT NULL,
|
||||||
date date NOT NULL,
|
"date" date NOT NULL,
|
||||||
count int NOT NULL,
|
count int NOT NULL,
|
||||||
id int NOT NULL,
|
id int NOT NULL,
|
||||||
PRIMARY KEY (page_id)
|
PRIMARY KEY (page_id)
|
||||||
|
Reference in New Issue
Block a user