kunklejr/node-db-migrate — pull request #151 by szywon (2014-02-13 20:04:31+00:00)
Title: Handle single quotes in strings in a portable way

Replace `''` (two single quotes) with `'` inside a string literal. Also handles more than one single quote (`/'/` vs. `/'/g`).

Makes everything use the `escape` method from `driver/base` instead of inline `.replace(…)` calls in two places.

Renders PR #143 obsolete.

I'm not sure if duplicating "insert" tests just to include single quotes inside title is a good idea. Maybe I should've added them to existing "insert" tests?