Skip to content

Consistent key name for conditional queries. #65

@d3ep4k

Description

@d3ep4k

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>

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions