Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task_tableのidがunixtimeなのでuniqueにならない #1

Closed
y-jono opened this issue May 26, 2013 · 0 comments
Closed

task_tableのidがunixtimeなのでuniqueにならない #1

y-jono opened this issue May 26, 2013 · 0 comments

Comments

@y-jono
Copy link
Collaborator

y-jono commented May 26, 2013

time()関数の返り値はunix timeですが、これをuniqueなidに使うことはできません。
現状のコードでは複数人でタスクを登録する際、全く同時刻にinsert文を実行してしまうと同じidのレコードができてしまいます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants