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

[HIGH PRIORITY] Fixed Xorm V6 compile errors #3685

Merged
merged 1 commit into from Sep 22, 2016
Merged

[HIGH PRIORITY] Fixed Xorm V6 compile errors #3685

merged 1 commit into from Sep 22, 2016

Conversation

ghost
Copy link

@ghost ghost commented Sep 22, 2016

DO NOT CLOSE THIS. THIS FIXES XORM COMPILE ERRORS.


Description

The newest version of xorm changes the xorm.Engine interface where the Where, is no longer Where(string, ...interface{}) *xorm.Session but instead Where(interface{}, ...interface{}) *xorm.Session. However, xorm still supports string queries.

I've read somewhere that the string query may be deprecated and removed soon, so this fix may or may not be a permanent solution, thus it is best to slowly convert existing database queries to use go-xorm/builder.

@gronke
Copy link
Contributor

gronke commented Sep 22, 2016

@unknwon please 🚢

@bkcsoft
Copy link
Contributor

bkcsoft commented Sep 22, 2016

Could you update the glide & gopm-files to reflect the changed version as well

@lunny
Copy link
Contributor

lunny commented Sep 22, 2016

I think maybe you have made a mistake. string query will be supported always. github.com/go-xorm/builder is a new choice. @LefsFlarey

@unknwon unknwon added status: needs feedback Tell me more about it and removed status: needs feedback Tell me more about it labels Sep 22, 2016
@unknwon
Copy link
Member

unknwon commented Sep 22, 2016

Thanks!

@unknwon unknwon merged commit 2bec8a4 into gogs:develop Sep 22, 2016
@ghost
Copy link
Author

ghost commented Sep 23, 2016

@lunny I read somewhere that it might not be supported always. Still, might be useful to upgrade it to go-xorm/builder.

richmahn referenced this pull request in unfoldingWord/dcs Sep 25, 2016
@ghost ghost deleted the fix/xorm-v6 branch October 4, 2016 08:15
richmahn referenced this pull request in unfoldingWord/dcs Nov 18, 2016
richmahn pushed a commit to richmahn/gogs that referenced this pull request Nov 23, 2016
jvanderneutstulen added a commit to jvanderneutstulen/gogs that referenced this pull request Dec 13, 2016
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.

5 participants