Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Add some sql files for testing, improve compatibility #1

@laukstein

Description

@laukstein

@erhankilic, hi!
I find your github repo from https://dev.to/erhankilic/how-to-import-sql-file-with-php--1jbc

Erhan, you could add some .sql files for testing, see if your php passes it fine.

For example I think it wouldn't pass:

  1. comment format /* this is a comment */
  2. query that doesn't end on first ; for example:
CREATE TRIGGER modified BEFORE UPDATE ON `table` FOR EACH ROW IF (NEW.title <> OLD.title OR
  NEW.description <> OLD.description OR
  NEW.text <> OLD.text) THEN
  SET NEW.modified = NOW();
END IF;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions