Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

support for 'AS' in select statements with getSelect() #30

Open
bshack opened this issue Jan 13, 2015 · 1 comment
Open

support for 'AS' in select statements with getSelect() #30

bshack opened this issue Jan 13, 2015 · 1 comment

Comments

@bshack
Copy link

bshack commented Jan 13, 2015

feature request mainly for support of location searches:

SELECT id, ( 3959 * acos( cos( radians(40) ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians(-83) ) + sin( radians(40) ) * sin( radians( latitude ) ) ) ) AS distance FROM location HAVING distance < 100 ORDER BY distance LIMIT 0 , 20;

Thanks!

@olivierphi
Copy link
Owner

Hi!

Unfortunately, I don't have enough free time these days to add such a feature. But I'll be happy to accept a Pull Request if you want to implement this!

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

No branches or pull requests

2 participants