add static sql support for joda/data2/bp/postgis