summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavey Shafik <davey@php.net>2020-10-27 10:00:52 +0000
committerGitHub <noreply@github.com>2020-10-27 10:02:54 +0000
commite639fd80b4a2328d1b4f0429ee302ae915a99c71 (patch)
treea1c90037a7c9892b8855da077b3fcc31a394960f
parent895ce98222435e17eda25e6ac6f68e0921ef30cc (diff)
downloadphp7-mysql-shim-e639fd80b4a2328d1b4f0429ee302ae915a99c71.zip
php7-mysql-shim-e639fd80b4a2328d1b4f0429ee302ae915a99c71.tar.gz
php7-mysql-shim-e639fd80b4a2328d1b4f0429ee302ae915a99c71.tar.bz2
s/char/string
-rw-r--r--lib/mysql.php2
-rw-r--r--tests/MySqlShimTest.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/mysql.php b/lib/mysql.php
index edeae96..7f6f008 100644
--- a/lib/mysql.php
+++ b/lib/mysql.php
@@ -500,7 +500,7 @@ namespace {
$res->type = 'string';
break;
case MYSQLI_TYPE_STRING:
- $res->type = 'char';
+ $res->type = 'string';
break;
case MYSQLI_TYPE_GEOMETRY:
$res->type = 'geometry';
diff --git a/tests/MySqlShimTest.php b/tests/MySqlShimTest.php
index a39ac1f..701cabd 100644
--- a/tests/MySqlShimTest.php
+++ b/tests/MySqlShimTest.php
@@ -1024,12 +1024,12 @@ class MySqlShimTest extends \Yoast\PHPUnitPolyfills\TestCases\TestCase
9 => array(
'name' => 'nine', 'max_length' => 3, 'not_null' => 0, 'primary_key' => 0,
'unique_key' => 0, 'multiple_key' => 0, 'numeric' => 0, 'blob' => 0,
- 'type' => 'char', 'unsigned' => 0, 'zerofill' => 0
+ 'type' => 'string', 'unsigned' => 0, 'zerofill' => 0
),
10 => array(
'name' => 'ten', 'max_length' => 3, 'not_null' => 0, 'primary_key' => 0,
'unique_key' => 0, 'multiple_key' => 0, 'numeric' => 0, 'blob' => 0,
- 'type' => 'char', 'unsigned' => 0, 'zerofill' => 0
+ 'type' => 'string', 'unsigned' => 0, 'zerofill' => 0
),
11 => array(
'name' => 'eleven', 'max_length' => 1, 'not_null' => 0, 'primary_key' => 0,