1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-03 12:48:38 -04:00

Add security tests

This commit is contained in:
2017-10-09 21:10:22 -04:00
parent 4953063286
commit 14b0839b41
3 changed files with 191 additions and 1 deletions

View File

@ -208,7 +208,7 @@ func DeleteSecurity(db *DB, s *Security) error {
// Remove all prices involving this security (either of this security, or
// using it as a currency)
_, err = transaction.Exec("DELETE * FROM prices WHERE SecurityId=? OR CurrencyId=?", s.SecurityId, s.SecurityId)
_, err = transaction.Exec("DELETE FROM prices WHERE SecurityId=? OR CurrencyId=?", s.SecurityId, s.SecurityId)
if err != nil {
transaction.Rollback()
return err