good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
upper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
open
upper
Commits
47fe816c
Commit
47fe816c
authored
8 years ago
by
José Carlos Nieto
Browse files
Options
Downloads
Plain Diff
Fix local test.
parents
35d3f210
87d3d55d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
postgresql/local_test.go
+36
-0
36 additions, 0 deletions
postgresql/local_test.go
with
36 additions
and
0 deletions
postgresql/local_test.go
+
36
−
0
View file @
47fe816c
...
...
@@ -81,3 +81,39 @@ func TestStringAndInt64Array(t *testing.T) {
assert
.
NotZero
(
t
,
itemCheck
.
Strings
)
}
}
func
TestIssue210
(
t
*
testing
.
T
)
{
list
:=
[]
string
{
`DROP TABLE IF EXISTS testing123`
,
`DROP TABLE IF EXISTS hello`
,
`CREATE TABLE IF NOT EXISTS testing123 (
ID INT PRIMARY KEY NOT NULL,
NAME TEXT NOT NULL
)
`
,
`CREATE TABLE IF NOT EXISTS hello (
ID INT PRIMARY KEY NOT NULL,
NAME TEXT NOT NULL
)`
,
}
sess
:=
mustOpen
()
defer
sess
.
Close
()
tx
,
err
:=
sess
.
NewTx
()
assert
.
NoError
(
t
,
err
)
for
i
:=
range
list
{
_
,
err
=
tx
.
Exec
(
list
[
i
])
assert
.
NoError
(
t
,
err
)
}
err
=
tx
.
Commit
()
assert
.
NoError
(
t
,
err
)
_
,
err
=
sess
.
Collection
(
"testing123"
)
.
Find
()
.
Count
()
assert
.
NoError
(
t
,
err
)
_
,
err
=
sess
.
Collection
(
"hello"
)
.
Find
()
.
Count
()
assert
.
NoError
(
t
,
err
)
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment