Quantcast
Channel: Topic Tag: database | WordPress.org
Viewing all articles
Browse latest Browse all 11065

WPwebbouw on "[Plugin: Wysija Newsletters] Database Import Errors"

$
0
0

Hi George,

Yes I can reproduce it with WySija 2.5.4.

However I found that it depends on the way the database has been exported. I use a backup plugion that exports the database in the above mentioned way. But this morning I made an export using PhpMyAdmin and this produced a different sql:

INSERT INTO wp_wysija_user_field VALUES ( 1, 'First name', 'firstname', 0, NULL, '', 0, 'Please enter first name' );

You see the column names are omitted here from the INSERT statement, only the table name is given. Another difference: the table name is backslashed.

Since both forms of the INSERT statement (with and without column names) are allowed, the problem still occurs on database exports that use the INSERT statement with column names. This could be solved by avoiding the use of reserved MySQL keywords in the column names (values, default).


Viewing all articles
Browse latest Browse all 11065

Trending Articles