symphonists/url_router — Issue #3: MySQL error: Column count doesn't match value count
Author: froschdesign
Created: 2011-10-12 13:01:44+00:00
State: open

Hello Symphonists,
I get an error when I try to save my route definitions.

### Example to reproduce the problem

First route: "Force re-route if page exists" is checked
Second route: "Force re-route if page exists" is not checked

The generated query:
```
INSERT INTO
`sym_url_router` (`type`, `from`, `to`, `http301`)
VALUES
('route', '/\/foo\/(.+\/)/', '/foo/$1', 'yes'),
('route', '/\/foo\/(.+\/)/', '/foo/$1')
```

Error message:

> Error : Column count doesn't match value count at row 2

(MySQL version is 5.1.32)