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

Consistent key name for conditional queries. #65

Open
d3ep4k opened this issue Nov 2, 2022 · 0 comments
Open

Consistent key name for conditional queries. #65

d3ep4k opened this issue Nov 2, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@d3ep4k
Copy link
Contributor

d3ep4k commented Nov 2, 2022

Following tags will either loc2 or loc3.

<Sql id="loc2" limit="limit" when="empty $tz">
	select name, lat, lon, timezone as 'tz' from city where name like '$q%' and timezone = 'Asia/Kolkata'
</Sql>

<Sql id="loc3" limit="limit"  when="not empty $tz">
	select name, lat, lon, timezone as 'tz' from city where name like '$q%' and timezone = $tz
</Sql>
@d3ep4k d3ep4k self-assigned this Nov 2, 2022
@d3ep4k d3ep4k added the enhancement New feature or request label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant