opened
Quetzacoalt91
username_0
Fixes #106 

The module was trying to guess what value to store in the backup when it was empty, depending on the table structure.

Just stick to the original value, before escape. If it was NULL, store it directly as-is in the backup file.
Store NULL is backups when NULL is in DB
issue
created
Quetzacoalt91
username_0
BEFORE RESTORE

```
mysql> select * from ps_attribute;
+--------------+--------------------+---------+----------+
| id_attribute | id_attribute_group | color   | position |
+--------------+--------------------+---------+----------+
|            1 |                  1 |         |        0 |
|            2 |                  1 |         |        1 |
|            3 |                  1 |         |        2 |
|            4 |                  1 |         |        3 |
|            5 |                  3 | #AAB2BD |        0 |
|            6 |                  3 | #CFC4A6 |        1 |
|            7 |                  3 | #f5f5dc |        2 |
|            8 |                  3 | #ffffff |        3 |
|            9 |                  3 | #faebd7 |        4 |
|           10 |                  3 | #E84C3D |        5 |
|           11 |                  3 | #434A54 |        6 |
|           12 |                  3 | #C19A6B |        7 |
|           13 |                  3 | #F39C11 |        8 |
|           14 |                  3 | #5D9CEC |        9 |
|           15 |                  3 | #A0D468 |       10 |
|           16 |                  3 | #F1C40F |       11 |
|           17 |                  3 | #964B00 |       12 |
|           18 |                  2 |         |        0 |
|           19 |                  2 |         |        1 |
|           20 |                  2 |         |        2 |
|           21 |                  2 |         |        3 |
|           22 |                  2 |         |        4 |
|           23 |                  2 |         |        5 |
|           24 |                  3 | #FCCACD |       13 |
+--------------+--------------------+---------+----------+
24 rows in set (0.00 sec)
```

AFTER RESTORE

```
mysql> select * from ps_attribute;
+--------------+--------------------+---------+----------+
| id_attribute | id_attribute_group | color   | position |
+--------------+--------------------+---------+----------+
|            1 |                  1 |         |        0 |
|            2 |                  1 |         |        1 |
|            3 |                  1 |         |        2 |
|            4 |                  1 |         |        3 |
|            5 |                  3 | #AAB2BD |        0 |
|            6 |                  3 | #CFC4A6 |        1 |
|            7 |                  3 | #f5f5dc |        2 |
|            8 |                  3 | #ffffff |        3 |
|            9 |                  3 | #faebd7 |        4 |
|           10 |                  3 | #E84C3D |        5 |
|           11 |                  3 | #434A54 |        6 |
|           12 |                  3 | #C19A6B |        7 |
|           13 |                  3 | #F39C11 |        8 |
|           14 |                  3 | #5D9CEC |        9 |
|           15 |                  3 | #A0D468 |       10 |
|           16 |                  3 | #F1C40F |       11 |
|           17 |                  3 | #964B00 |       12 |
|           18 |                  2 |         |        0 |
|           19 |                  2 |         |        1 |
|           20 |                  2 |         |        2 |
|           21 |                  2 |         |        3 |
|           22 |                  2 |         |        4 |
|           23 |                  2 |         |        5 |
|           24 |                  3 | #FCCACD |       13 |
+--------------+--------------------+---------+----------+
24 rows in set (0.00 sec)
```
Same content, merging.
comment