dresende/node-orm — Issue #28: Quotes will cause error while updating objects with Postgresql
Author: willow
Created: 2012-01-13 05:37:53+00:00
State: open

Here is an error I got while updating an object.

```
{ _dataPending: 0,
_dataHash: 'cd09c0449a9d14ea782d038f91d4bd17',
id: 16,
created: '2012-01-10T19:38:26.026Z',
cssname: '\'Antenna Thin\'',
font: '\'Antenna Thin\'',
left: 700,
stack: '\'Antenna Thin\'',
top: 4333,
url: 'http://ie.microsoft.com/testdrive/Graphics/opentype/opentype-fontbureau/index.html' }
```

From the DB log:

```
ERROR: syntax error at or near "Antenna" at character 84
STATEMENT: UPDATE "record" SET "created"='0000-00-00', "cssname"='''Antenna Thin'', "font"='''Antenna Thin'', "left"='700', "stack"='''Antenna Thin'', "top"='4333', "url"='http://ie.microsoft.com/testdrive/Graphics/opentype/opentype-fontbureau/index.html' WHERE "id"=16
```