-
Notifications
You must be signed in to change notification settings - Fork 11
do not close prepare #12
Conversation
if err := sc.Err(); err != nil { | ||
t.Errorf("expected no errors, but got %v", err) | ||
} | ||
sc = Insert("INSERT INTO test(name) VALUES('testcache')") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is right? Try save twice same data ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is just to test cache
if err := sc.Err(); err != nil { | ||
t.Errorf("expected no errors, but got %v", err) | ||
} | ||
sc = Delete("DELETE FROM test WHERE name='test cache'") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return some error here... Try delete same data twice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is just to test cache
I have decided to remove the transaction from all the functions because we only execute one operation, there is no need to be under a transaction. |
@felipeweb First question about it is: I aren't SQL specialist but this no make sense to me. |
@marioidival it is just to test if cache doesn't bug on insert query i can't imagine this scenario, but in the database is completely possible if table not have unique key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
prest/prest#205