Fix bug in our code when using to_timestamp() or to_date() without "TM".
Fix bug in our code when using to_timestamp() or to_date() without "TM".

Assume "TM" when input fields are variable-length, like month or day
names.  This matches Oracle behavior.

ahachete/gpdb,edespino/gpdb,jmcatamney/gpdb,arcivanov/postgres-xl,edespino/gpdb,yazun/postgres-xl,lpetrov-pivotal/gpdb,ashwinstar/gpdb,0x0FFF/gpdb,chrishajas/gpdb,foyzur/gpdb,techdragon/Postgres-XL,janebeckman/gpdb,xuegang/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,0x0FFF/gpdb,chrishajas/gpdb,arcivanov/postgres-xl,Postgres-XL/Postgres-XL,randomtask1155/gpdb,lisakowen/gpdb,Chibin/gpdb,50wu/gpdb,chrishajas/gpdb,ovr/postgres-xl,lpetrov-pivotal/gpdb,oberstet/postgres-xl,cjcjameson/gpdb,xinzweb/gpdb,yazun/postgres-xl,greenplum-db/gpdb,arcivanov/postgres-xl,greenplum-db/gpdb,rubikloud/gpdb,xinzweb/gpdb,rvs/gpdb,ashwinstar/gpdb,lisakowen/gpdb,CraigHarris/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,lisakowen/gpdb,zaksoup/gpdb,zaksoup/gpdb,janebeckman/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,chrishajas/gpdb,foyzur/gpdb,tpostgres-projects/tPostgres,lpetrov-pivotal/gpdb,Quikling/gpdb,lintzc/gpdb,techdragon/Postgres-XL,zaksoup/gpdb,kaknikhil/gpdb,janebeckman/gpdb,Quikling/gpdb,0x0FFF/gpdb,Quikling/gpdb,50wu/gpdb,yuanzhao/gpdb,0x0FFF/gpdb,Quikling/gpdb,kaknikhil/gpdb,tangp3/gpdb,zeroae/postgres-xl,0x0FFF/gpdb,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,xuegang/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,royc1/gpdb,ahachete/gpdb,greenplum-db/gpdb,lisakowen/gpdb,xuegang/gpdb,xuegang/gpdb,foyzur/gpdb,xuegang/gpdb,kaknikhil/gpdb,lintzc/gpdb,rvs/gpdb,adam8157/gpdb,rvs/gpdb,oberstet/postgres-xl,edespino/gpdb,ashwinstar/gpdb,royc1/gpdb,ahachete/gpdb,lintzc/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,50wu/gpdb,rubikloud/gpdb,rubikloud/gpdb,randomtask1155/gpdb,Chibin/gpdb,royc1/gpdb,cjcjameson/gpdb,rvs/gpdb,Postgres-XL/Postgres-XL,randomtask1155/gpdb,50wu/gpdb,xinzweb/gpdb,zeroae/postgres-xl,lintzc/gpdb,rvs/gpdb,randomtask1155/gpdb,adam8157/gpdb,Chibin/gpdb,lintzc/gpdb,janebeckman/gpdb,foyzur/gpdb,edespino/gpdb,randomtask1155/gpdb,janebeckman/gpdb,50wu/gpdb,Quikling/gpdb,atris/gpdb,atris/gpdb,royc1/gpdb,0x0FFF/gpdb,lisakowen/gpdb,50wu/gpdb,yazun/postgres-xl,ahachete/gpdb,zaksoup/gpdb,lpetrov-pivotal/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,chrishajas/gpdb,tangp3/gpdb,zaksoup/gpdb,zaksoup/gpdb,xinzweb/gpdb,Chibin/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,xuegang/gpdb,yazun/postgres-xl,tangp3/gpdb,edespino/gpdb,foyzur/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,techdragon/Postgres-XL,tangp3/gpdb,atris/gpdb,ahachete/gpdb,lintzc/gpdb,Postgres-XL/Postgres-XL,randomtask1155/gpdb,kmjungersen/PostgresXL,atris/gpdb,rubikloud/gpdb,greenplum-db/gpdb,tangp3/gpdb,greenplum-db/gpdb,zaksoup/gpdb,Chibin/gpdb,cjcjameson/gpdb,adam8157/gpdb,CraigHarris/gpdb,xinzweb/gpdb,rubikloud/gpdb,yuanzhao/gpdb,lpetrov-pivotal/gpdb,jmcatamney/gpdb,Quikling/gpdb,kmjungersen/PostgresXL,royc1/gpdb,ashwinstar/gpdb,kmjungersen/PostgresXL,Quikling/gpdb,snaga/postgres-xl,kmjungersen/PostgresXL,zeroae/postgres-xl,janebeckman/gpdb,janebeckman/gpdb,arcivanov/postgres-xl,yuanzhao/gpdb,royc1/gpdb,postmind-net/postgres-xl,adam8157/gpdb,50wu/gpdb,janebeckman/gpdb,chrishajas/gpdb,lintzc/gpdb,CraigHarris/gpdb,rvs/gpdb,oberstet/postgres-xl,cjcjameson/gpdb,zeroae/postgres-xl,ovr/postgres-xl,xuegang/gpdb,cjcjameson/gpdb,arcivanov/postgres-xl,ashwinstar/gpdb,jmcatamney/gpdb,foyzur/gpdb,janebeckman/gpdb,postmind-net/postgres-xl,edespino/gpdb,foyzur/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,CraigHarris/gpdb,pavanvd/postgres-xl,ahachete/gpdb,zeroae/postgres-xl,yuanzhao/gpdb,lisakowen/gpdb,zaksoup/gpdb,edespino/gpdb,ashwinstar/gpdb,rvs/gpdb,xinzweb/gpdb,ahachete/gpdb,tpostgres-projects/tPostgres,ovr/postgres-xl,lisakowen/gpdb,CraigHarris/gpdb,atris/gpdb,tangp3/gpdb,rubikloud/gpdb,rubikloud/gpdb,kaknikhil/gpdb,tpostgres-projects/tPostgres,postmind-net/postgres-xl,Chibin/gpdb,postmind-net/postgres-xl,tangp3/gpdb,kmjungersen/PostgresXL,yuanzhao/gpdb,postmind-net/postgres-xl,xuegang/gpdb,snaga/postgres-xl,foyzur/gpdb,oberstet/postgres-xl,pavanvd/postgres-xl,ovr/postgres-xl,0x0FFF/gpdb,yuanzhao/gpdb,arcivanov/postgres-xl,lisakowen/gpdb,CraigHarris/gpdb,edespino/gpdb,rubikloud/gpdb,randomtask1155/gpdb,Chibin/gpdb,Chibin/gpdb,Quikling/gpdb,xuegang/gpdb,greenplum-db/gpdb,edespino/gpdb,adam8157/gpdb,Quikling/gpdb,kaknikhil/gpdb,atris/gpdb,chrishajas/gpdb,Chibin/gpdb,jmcatamney/gpdb,snaga/postgres-xl,yuanzhao/gpdb,CraigHarris/gpdb,xinzweb/gpdb,lpetrov-pivotal/gpdb,pavanvd/postgres-xl,janebeckman/gpdb,edespino/gpdb,greenplum-db/gpdb,tangp3/gpdb,chrishajas/gpdb,snaga/postgres-xl,oberstet/postgres-xl,rvs/gpdb,CraigHarris/gpdb,ahachete/gpdb,50wu/gpdb,lintzc/gpdb,tpostgres-projects/tPostgres,Quikling/gpdb,greenplum-db/gpdb,atris/gpdb,lintzc/gpdb,tpostgres-projects/tPostgres,CraigHarris/gpdb,randomtask1155/gpdb,yuanzhao/gpdb,rvs/gpdb,snaga/postgres-xl,techdragon/Postgres-XL,royc1/gpdb,rvs/gpdb,cjcjameson/gpdb,yazun/postgres-xl,lpetrov-pivotal/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,adam8157/gpdb,atris/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,royc1/gpdb,cjcjameson/gpdb,Chibin/gpdb