Added support for parameters in SELECT clauses.
Made tzname a parameter of datetime_extract/trunc_sql.

This is required to work around a bug in Oracle.