Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82534

Syntax error in SQLite example file (fix included)

$
0
0

Hi!

The Editor installation instructions contain some database example files here: https://editor.datatables.net/manual/php/installing
The SQLite script is broken, because it contains some syntax errors:

  • line 126 (2 columnsmissing): INSERT INTO users (title, first_name, last_name, phone, city, zip, registered_date, active, manager, site)
  • should be: INSERT INTO users (title, first_name, last_name, phone, city, zip, registered_date, active, manager, site, shift_start, shift_end)

  • line 289: DROP TABLE IF EXISTS audiobooks CASCADE;
  • should be: DROP TABLE IF EXISTS audiobooks;

  • line 305, 307, and 316 (wrong escape charachter): ( 'Assassin\'s Apprentice: The Farseer Trilogy', 'Robin Hobb', 1043, 5 ),
  • should be doubled single quotes: ( 'Assassin''s Apprentice: The Farseer Trilogy', 'Robin Hobb', 1043, 5 ),

HTH


Viewing all articles
Browse latest Browse all 82534


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>