Added fix for issue 289, with a test case.

git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_stabilization@1454 eaa15691-b419-025a-1212-ee371bd00084
7 files changed