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

Selection insert fix #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Unlink
Copy link
Contributor

@Unlink Unlink commented Sep 27, 2015

Fixes #80, #41
https://forum.nette.org/cs/24391-standartni-html-formular-a-zpracovani-post-pozadavku-v-presenteru-jine-stranky#p163128

In Structure there is autoincrement information in columns which i need in insert method but i'm not sure if i can extend it interface so i add method for this only into Selection.

Any ideas how to get this information in Selection better way?

I also changed return value when inserting multiple values. So insert can returns ActiveRow or number of affected rows.

@Unlink
Copy link
Contributor Author

Unlink commented Jun 10, 2016

@dg i've updated this, so what do you think? or #105 way should be better?

@dg dg force-pushed the master branch 2 times, most recently from 5c87d56 to d9fd67a Compare June 27, 2016 23:11
@dg dg mentioned this pull request Jun 28, 2016
@dg dg force-pushed the master branch 11 times, most recently from 221f038 to 276f489 Compare October 18, 2016 12:35
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

Successfully merging this pull request may close these issues.

mysql: insert when primary key is not auto_increment
1 participant