Compare commits
2 Commits
c8a4ff76e2
...
35b35f5e40
| Author | SHA1 | Date | |
|---|---|---|---|
| 35b35f5e40 | |||
| 4c82ca0e2b |
@ -55,7 +55,7 @@ func (dal *DalImpl) InsertTransaction(t entity.Transaction) (entity.Transaction,
|
|||||||
}
|
}
|
||||||
|
|
||||||
stmt := `
|
stmt := `
|
||||||
INSERT INTO pfbudget.transactions (date, description, value)
|
INSERT INTO pfbudget.transactions (date, description, amount)
|
||||||
VALUES ($1, $2, $3)
|
VALUES ($1, $2, $3)
|
||||||
RETURNING id
|
RETURNING id
|
||||||
`
|
`
|
||||||
|
|||||||
@ -297,7 +297,7 @@ func TestDalImpl_InsertTransaction(t *testing.T) {
|
|||||||
|
|
||||||
mock.
|
mock.
|
||||||
ExpectQuery(`
|
ExpectQuery(`
|
||||||
INSERT INTO .* \(date, description, value\)
|
INSERT INTO .* \(date, description, amount\)
|
||||||
VALUES \(\$1, \$2, \$3\)
|
VALUES \(\$1, \$2, \$3\)
|
||||||
RETURNING id`).
|
RETURNING id`).
|
||||||
WithArgs(tt.args.t.Date, tt.args.t.Description, tt.args.t.Value).
|
WithArgs(tt.args.t.Date, tt.args.t.Description, tt.args.t.Value).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user