Skip to content

Commit

Permalink
Merge pull request #179 from DemonVex/next_release
Browse files Browse the repository at this point in the history
Added tests for /**/ comments
  • Loading branch information
avbasov committed Jan 24, 2016
2 parents 6dc7fe3 + e69fa47 commit 815fcda
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ [email protected].
* MATERIALIZED VIEW support in PostgreSQL 9.3 (Marti Raudsepp)
* Better support for inherited tables (Daniel Watson)
* Added support for CREATE UNLOGGED TABLE (Anatoliy Basov)

* Added support for /**/ comments (yulei)

#### Fixes
* Added hint to use "CREATE TABLE ... CONSTRAINT name PRIMARY KEY/UNIQUE ..."
Expand Down
5 changes: 4 additions & 1 deletion src/test/java/cz/startnet/utils/pgdiff/PgDiffTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ public static Collection<?> parameters() {
// Tests scenario where new UNLOGGED TABLE is added.
{"add_unlogged_table", false, false, false, false},
// Tests scenario where UNLOGGED TABLE is dropped.
{"drop_unlogged_table", false, false, false, false}
{"drop_unlogged_table", false, false, false, false},
// Test scenarios where /**/ comments.
{"add_table_issue115", false, false, false, false},
{"add_column_issue134", false, false, false, false}
});
}
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE test1
ADD COLUMN type SMALLINT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE table "test1" (
"id" BIGINT,
"type" SMALLINT /* 1: aaa, 2:bbb */,
"value" VARCHAR(255)
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CREATE table "test1" (
"id" BIGINT,
"value" VARCHAR(255)
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CREATE TABLE test2 (
id serial NOT NULL
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* create table begin */
create table "test2"(
"id" serial NOT NULL
);
Empty file.

0 comments on commit 815fcda

Please sign in to comment.