FoundationDB/sql-layer — pull request #1243 by nathanlws (2014-03-24 15:56:26+00:00)
Title: Fix casts between string types

It was using the source length instead of the target length for the truncation test.

It was also dropping the requested collation but that's harder to test due to another bug (card created to track that).