Skip to content

Commit

Permalink
[fix] column name coverage for columnQuote
Browse files Browse the repository at this point in the history
  • Loading branch information
catfan committed Oct 12, 2019
1 parent 0c1e8cd commit 3b28d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Medoo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
* Medoo database framework
* https://medoo.in
* Version 1.7.4
* Version 1.7.5
*
* Copyright 2019, Angel Lai
* Released under the MIT license
Expand Down Expand Up @@ -500,7 +500,7 @@ protected function typeMap($value, $type)

protected function columnQuote($string)
{
if (!preg_match('/^[a-zA-Z0-9]+(\.?[a-zA-Z0-9]+)?$/i', $string))
if (!preg_match('/^[a-zA-Z0-9_]+(\.?[a-zA-Z0-9_]+)?$/i', $string))
{
throw new InvalidArgumentException("Incorrect column name \"$string\"");
}
Expand Down

0 comments on commit 3b28d94

Please sign in to comment.