Skip to content

Commit

Permalink
Converting PDO::ATTR_CASE to PDO::CASE_LOWER
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrick Peter committed Oct 7, 2023
1 parent 00d6851 commit ffd0711
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Connectors/MysqlConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ class MysqlConnector implements ConnectorInterface{
/**
* The default PDO connection options.
*
* PDO::ATTR_CASE => PDO::CASE_NATURAL
* @var array
*/
private static $options = [
PDO::ATTR_PERSISTENT => true,
PDO::ATTR_CASE => PDO::CASE_NATURAL,
PDO::ATTR_CASE => PDO::CASE_LOWER,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_EMULATE_PREPARES => false,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
Expand Down
2 changes: 1 addition & 1 deletion src/Connectors/PostgresConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PostgresConnector
* @var array
*/
protected $options = [
PDO::ATTR_CASE => PDO::CASE_NATURAL,
PDO::ATTR_CASE => PDO::CASE_LOWER,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL,
PDO::ATTR_STRINGIFY_FETCHES => false,
Expand Down

0 comments on commit ffd0711

Please sign in to comment.