Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

do not close prepare #12

Merged
merged 3 commits into from
Aug 14, 2017
Merged

do not close prepare #12

merged 3 commits into from
Aug 14, 2017

Conversation

felipeweb
Copy link
Member

if err := sc.Err(); err != nil {
t.Errorf("expected no errors, but got %v", err)
}
sc = Insert("INSERT INTO test(name) VALUES('testcache')")
Copy link
Contributor

@marioidival marioidival Aug 14, 2017

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 ?

Copy link
Member Author

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'")
Copy link
Contributor

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

Copy link
Member Author

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

@felipeweb
Copy link
Member Author

felipeweb commented Aug 14, 2017

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.
And taking into account that this affected the cache because the commit closed stmt I decided to remove the transaction.
What do you think about it @avelino @crgimenes @cassiobotaro @marioidival @gtsalles @lerrua ?

@marioidival
Copy link
Contributor

marioidival commented Aug 14, 2017

@felipeweb First question about it is:
Why do I want cached insert of some specific data?

I aren't SQL specialist but this no make sense to me.

@felipeweb
Copy link
Member Author

felipeweb commented Aug 14, 2017

@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

Copy link
Contributor

@crgimenes crgimenes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@lerrua lerrua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants