diff options
author | Ian Gilfillan <github@greenman.co.za> | 2020-07-14 00:42:47 +0200 |
---|---|---|
committer | Anel <an3l@users.noreply.github.com> | 2020-07-22 23:18:12 +0200 |
commit | d2982331a62e22ff10fd7768f450303bc90d1caf (patch) | |
tree | e1f6f08983de4626d66e5b93e5c1f5399c3bff9c /sql/item_strfunc.cc | |
parent | 62d73df6b270cc94ba577e96d3bf325170f306fe (diff) | |
download | mariadb-git-d2982331a62e22ff10fd7768f450303bc90d1caf.tar.gz |
Code comment spellfixes
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r-- | sql/item_strfunc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index f3e19a19b3c..640242bbcff 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -923,7 +923,7 @@ String *Item_func_concat_ws::val_str(String *str) goto null; // Must be a blob } else if (res2 == &tmp_value) - { // This can happend only 1 time + { // This can happen only 1 time if (tmp_value.replace(0,0,*sep_str) || tmp_value.replace(0,0,*res)) goto null; res= &tmp_value; @@ -1071,7 +1071,7 @@ void Item_func_reverse::fix_length_and_dec() } /** - Replace all occurences of string2 in string1 with string3. + Replace all occurrences of string2 in string1 with string3. Don't reallocate val_str() if not needed. @@ -3839,7 +3839,7 @@ void Item_func_export_set::fix_length_and_dec() using in a SQL statement. Adds a \\ before all characters that needs to be escaped in a SQL string. - We also escape '^Z' (END-OF-FILE in windows) to avoid probelms when + We also escape '^Z' (END-OF-FILE in windows) to avoid problems when running commands from a file in windows. This function is very useful when you want to generate SQL statements. |