[Monetdb-developers] quotes around chr values

Sjoerd Mullender sjoerd at acm.org
Wed Aug 17 11:51:14 CEST 2005

I have prepared a patch to put (single) quotes around chr values in
tables as printed by the Mserver.  E.g.:
[ 'a' ]

Previously this resulted in
[ a ]

In addition to adding quotes, my patch also escapes control characters:
[ '\012' ]


This also shows a very important reason for wanting to make this change.
 Another example which is possibly even worse is chr(0).print().

I ran the pathfinder and sql tests, and only in pathfinder there are 2
tests that are affected (I will appprove them when I check the patch in).

This message is a heads up.  If you think you might be affected (JDBC,
Perl, others?), then maybe you will need to make changes once I check
this in.

The Mapi library already deals with single-quoted values.

Sjoerd Mullender
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 369 bytes
Desc: OpenPGP digital signature
URL: <http://www.monetdb.org/pipermail/developers-list/attachments/20050817/43ec0143/attachment.sig>

More information about the developers-list mailing list