From 3abdbb8bee52527aa079b1b6bd07d14e8dfd5a25 Mon Sep 17 00:00:00 2001 From: Angel Date: Thu, 6 Feb 2020 13:51:33 +0800 Subject: [PATCH] [fix] raw query with JOIN keyword #894 --- src/Medoo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Medoo.php b/src/Medoo.php index 81eedd25..deef63df 100644 --- a/src/Medoo.php +++ b/src/Medoo.php @@ -445,7 +445,7 @@ protected function buildRaw($raw, &$map) } $query = preg_replace_callback( - '/(([`\']).*?)?((FROM|TABLE|INTO|UPDATE)\s*)?\<(([a-zA-Z0-9_]+)(\.[a-zA-Z0-9_]+)?)\>(.*?\2)?/i', + '/(([`\']).*?)?((FROM|TABLE|INTO|UPDATE|JOIN)\s*)?\<(([a-zA-Z0-9_]+)(\.[a-zA-Z0-9_]+)?)\>(.*?\2)?/i', function ($matches) { if (!empty($matches[ 2 ] && isset($matches[ 8 ])))