EllisLab/CodeIgniter — Issue #787: nl_NL.UTF-8 locale breaks Active Record query building
Author: Jorijn
Created: 2011-12-15 14:03:10+00:00
State: open

We dutch people tend to write decimal numbers with commas. Since we do this, this is written in the NL locale. My float, which holds 3.15 actually becomes 3,15 -- which is two columns speaking in terms of MySQL.

The code:

```php
db->insert_string('fake_table', array('fake_column' => $test_number));
}
}

```

The result:

```mysql
INSERT INTO `fake_table` (`fake_column`) VALUES (3,15)
```
Evaluation:

MySQL error: Column count doesn't match value count at row 1