]> git.mxchange.org Git - friendica.git/commitdiff
spelling: binary
authorJosh Soref <2119212+jsoref@users.noreply.github.com>
Wed, 22 Mar 2023 03:16:54 +0000 (23:16 -0400)
committerJosh Soref <2119212+jsoref@users.noreply.github.com>
Sun, 26 Mar 2023 20:03:22 +0000 (16:03 -0400)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
src/Database/Definition/DbaDefinition.php

index 1e597bd64bc886c80ad20fa7ca8812a0974e6db0..3d3a2fa928648060b1be9cfd7e02328debeb7cd1 100644 (file)
@@ -82,7 +82,7 @@ class DbaDefinition
                // Assign all field that are present in the table
                foreach ($fieldNames as $field) {
                        if (isset($data[$field])) {
-                               // Limit the length of varchar, varbinary, char and binrary fields
+                               // Limit the length of varchar, varbinary, char and binary fields
                                if (is_string($data[$field]) && preg_match("/char\((\d*)\)/", $definition[$table]['fields'][$field]['type'], $result)) {
                                        $data[$field] = mb_substr($data[$field], 0, $result[1]);
                                } elseif (is_string($data[$field]) && preg_match("/binary\((\d*)\)/", $definition[$table]['fields'][$field]['type'], $result)) {