Skip to content

Commit

Permalink
Merge pull request #27 from billux/handle-tables-with-double-quotes
Browse files Browse the repository at this point in the history
Handle tables with double quotes while generating INSERT statements
  • Loading branch information
oliviermaridat authored Nov 19, 2021
2 parents 46fd30b + 151b286 commit 37d0e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kanboard-sqlite2mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ sqlite_dump_table_data()

echo -e ".mode insert ${table}\nselect * from ${table};" \
| sqlite3 ${sqliteDbFile} \
| sed -e "s/INSERT INTO \([a-z_]*\)/INSERT INTO \1 (${columns})/"
| sed -e "s/INSERT INTO \([a-z_\"]*\)/INSERT INTO \1 (${columns})/"
}

# If verbose, displays version of the schema found in the SQLite file. Beware this version is different from MySQL schema versions
Expand Down

0 comments on commit 37d0e5b

Please sign in to comment.