diff options
-rw-r--r-- | lib/mysql.php | 2 | ||||
-rw-r--r-- | tests/MySqlShimTest.php | 4 |
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, |