# comments start with hash or a //, empty line ignored
# lines can also end with a // comment (not hash) and anything after
# // till the end of that line is ignored.

# queries are of format 
# 	queryname = querycontent
# 	$xxx$ inside a query is a special section that is replaced#   by the columns returns by xxxMgr.columns()
#
# whitespace irrelevant, seperated by a ending ; (on a saperate line)
# the separator ; can contain whitespace before and after

//one location <--> many places at that location
userDetailQuery = 
	select 
	  $ fc.jdbc.dbo.generated.alltypes$ 
	from 
	checkins, location left join places  
		on location.locid = places.locid //some comment
	where 
		checkins.locid = location.locid 
		and checkins.uid = ? 
		and checkins.is_checked_in = true 
		and checkins.xx = $$fc.jdbc.QueryReader.TEST_FIELD_1$$ 
		and checkins.yy = "$$fc.jdbc.QueryReader.TEST_FIELD_2$$"
		and checkins.zz = $$fc.jdbc.QueryReader.dbg$$ 
		order by checkins.checkin_time DESC 
;


