You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/NpgsqlFSharpAnalyzer.Tests/Tests.fs
+13-11
Original file line number
Diff line number
Diff line change
@@ -74,9 +74,9 @@ let tests =
74
74
use db = createTestDatabase()
75
75
76
76
Sql.connect db.ConnectionString
77
-
|> Sql.query "CREATE EXTENSION IF NOT EXISTS citext;CREATE SCHEMA test; CREATE TABLE test.articles (id BIGINT PRIMARY KEY NOT NULL,art_name CITEXT UNIQUE NOT NULL, stock BIGINT NOT NULL);"
77
+
|> Sql.query "CREATE SCHEMA test CREATE TABLE test.articles (id BIGINT PRIMARY KEY NOT NULL,art_name TEXT NOT NULL, stock BIGINT NOT NULL);"
78
78
|> Sql.executeNonQuery
79
-
|>raiseWhenFailed
79
+
|>ignore
80
80
81
81
match context (find "../examples/hashing/MultipleNestedModules.fs")with
Expect.equal 1 errors.Length "There should be one error message"
92
-
Expect.stringContains errors.[0].Message "column \"x\" does not exist""There should be an error message"
92
+
Expect.stringContains errors.[0].Message "Invalid column name 'x'""There should be an error message"
93
93
}
94
94
95
95
test "Semantic analysis using FSX: finding SQL blocks in multiple nested modules which query a non-public schema"{
96
96
use db = createTestDatabase()
97
97
98
98
Sql.connect db.ConnectionString
99
-
|> Sql.query "CREATE EXTENSION IF NOT EXISTS citext;CREATE SCHEMA test; CREATE TABLE test.articles (id BIGINT PRIMARY KEY NOT NULL,art_name CITEXT UNIQUE NOT NULL, stock BIGINT NOT NULL);"
99
+
|> Sql.query "CREATE SCHEMA test CREATE TABLE test.articles (id BIGINT PRIMARY KEY NOT NULL,art_name TEXT NOT NULL, stock BIGINT NOT NULL);"
100
100
|> Sql.executeNonQuery
101
-
|>raiseWhenFailed
101
+
|>ignore
102
102
103
103
match context (find "../examples/hashing/MultipleNestedModules.fsx")with
0 commit comments