Skip to content

Query SQL comment prefix query report error #72

Description

@KsssAlleria

For example SQL:
--admin
SELECT
date_time, app_id FROM basic.basic_day_all limit 2`
execute SQL to return underfind,

Query source code is found to be a problem with this code:

if (chQuery.match (/^(?:SELECT|WITH|SHOW|DESC|DESCRIBE|EXISTS\s+TABLE)/i)) {
	if (!options.format)
		options.format = options.dataObjects ? 'JSON' : 'JSONCompact';
} else if (chQuery.match (/^INSERT/i)) {
      //
} 

I hope the author can help repair it, TK~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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