Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
65631e05
authored
2014-03-19 10:00:26 +0800
by
slene
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix orm test
1 parent
a879e412
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
orm/orm_test.go
orm/orm_test.go
View file @
65631e0
...
...
@@ -1417,7 +1417,7 @@ func TestRawQueryRow(t *testing.T) {
)
cols
=
[]
string
{
"id"
,
"
s
tatus"
,
"profile_id"
,
"id"
,
"
S
tatus"
,
"profile_id"
,
}
query
=
fmt
.
Sprintf
(
"SELECT %s%s%s FROM %suser%s WHERE id = ?"
,
Q
,
strings
.
Join
(
cols
,
sep
),
Q
,
Q
,
Q
)
err
=
dORM
.
Raw
(
query
,
4
)
.
QueryRow
(
&
uid
,
&
status
,
&
pid
)
...
...
@@ -1497,7 +1497,7 @@ func TestRawValues(t *testing.T) {
Q
:=
dDbBaser
.
TableQuote
()
var
maps
[]
Params
query
:=
fmt
.
Sprintf
(
"SELECT %suser_name%s FROM %suser%s WHERE %s
s
tatus%s = ?"
,
Q
,
Q
,
Q
,
Q
,
Q
,
Q
)
query
:=
fmt
.
Sprintf
(
"SELECT %suser_name%s FROM %suser%s WHERE %s
S
tatus%s = ?"
,
Q
,
Q
,
Q
,
Q
,
Q
,
Q
)
num
,
err
:=
dORM
.
Raw
(
query
,
1
)
.
Values
(
&
maps
)
throwFail
(
t
,
err
)
throwFail
(
t
,
AssertIs
(
num
,
1
))
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment