diff options
author | unknown <monty@donna.mysql.fi> | 2001-03-26 02:01:05 +0300 |
---|---|---|
committer | unknown <monty@donna.mysql.fi> | 2001-03-26 02:01:05 +0300 |
commit | 653f620e6f3f416ef327ec85daf1ba4f0654442c (patch) | |
tree | 59733b186cd48b89ae04c17dbe6abfd99dc6d586 | |
parent | e7e243ed035a71666e07dd5767536783919764ed (diff) | |
download | mariadb-git-653f620e6f3f416ef327ec85daf1ba4f0654442c.tar.gz |
Fixed problem with Innobase and signals on Solaris
Docs/manual.texi:
Added information about \Z
innobase/os/os0file.c:
Fixed problem with signals on Solaris
sql/ha_innobase.cc:
Removed not needed sign()
-rw-r--r-- | Docs/manual.texi | 71 | ||||
-rw-r--r-- | innobase/os/os0file.c | 2 | ||||
-rw-r--r-- | sql/ha_innobase.cc | 8 |
3 files changed, 45 insertions, 36 deletions
diff --git a/Docs/manual.texi b/Docs/manual.texi index 749e3ea041e..417b4ebf8a0 100644 --- a/Docs/manual.texi +++ b/Docs/manual.texi @@ -13529,36 +13529,44 @@ character}. @strong{MySQL} recognizes the following escape sequences: @item \0 An ASCII 0 (@code{NUL}) character. +@findex \' (single quote) +@findex single quote (\') +@item \' +A single quote (@samp{'}) character. + +@findex \" (double quote) +@findex double quote (\") +@item \" +A double quote (@samp{"}) character. + +@findex \b (backspace) +@findex backspace (\b) +@item \b +A backspace character. + @findex \n (newline) @findex newline (\n) @item \n A newline character. -@findex \t (tab) -@findex tab (\t) -@item \t -A tab character. - @findex \r (carriage return) @findex return (\r) @findex carriage return (\r) @item \r A carriage return character. -@findex \b (backspace) -@findex backspace (\b) -@item \b -A backspace character. - -@findex \' (single quote) -@findex single quote (\') -@item \' -A single quote (@samp{'}) character. +@findex \t (tab) +@findex tab (\t) +@item \t +A tab character. -@findex \" (double quote) -@findex double quote (\") -@item \" -A double quote (@samp{"}) character. +@findex \z (Control-Z) ASCII(26) +@findex (Control-Z) \z +@item \z +ASCII(26) (Control-Z). This character can be encoded to allow you to +go around the problem that ASCII(26) stands for END-OF-FILE on windows. +(ASCII(26) will cause problems if you try to use +@code{mysql database < filename}). @findex \\ (escape) @findex escape (\\) @@ -37258,10 +37266,12 @@ None. You should use @code{mysql_real_escape_string()} instead! -This is identical to @code{mysql_real_escape_string()} except that it takes -the connection as the first argument. @code{mysql_real_escape_string()} -will escape the string according to the current character set while @code{mysql_escape_string()} -does not respect the current charset setting. +This is identical to @code{mysql_real_escape_string()} except that it +takes the connection as the first +argument. @code{mysql_real_escape_string()} will escape the string +according to the current character set while +@code{mysql_escape_string()} does not respect the current charset +setting. @findex @code{mysql_fetch_field()} @node mysql_fetch_field, mysql_fetch_fields, mysql_escape_string, C API functions @@ -38365,12 +38375,14 @@ try reconnecting to the server before giving up. @subsubheading Description -Encodes the string in @code{from} to an escaped SQL string, taking into -account the current charset of the connection, that can be sent to the -server in a SQL statement, places the result in @code{to}, and adds a -terminating null byte. Characters encoded are @code{NUL} (ASCII 0), -@samp{\n}, @samp{\r}, @samp{\}, @samp{'}, @samp{"}, and Control-Z -(@pxref{Literals}). +This function is used to create a legal SQL string that you can use in a +SQL statement. @xref{String syntax}. + +The string in @code{from} is encoded to an escaped SQL string, taking +into account the current character set of the connection. The result is placed +in @code{to} and a terminating null byte is appended. Characters +encoded are @code{NUL} (ASCII 0), @samp{\n}, @samp{\r}, @samp{\}, +@samp{'}, @samp{"}, and Control-Z (@pxref{Literals}). The string pointed to by @code{from} must be @code{length} bytes long. You must allocate the @code{to} buffer to be at least @code{length*2+1} bytes @@ -42413,6 +42425,9 @@ of connections in a short time). Don't free the key cache on @code{FLUSH TABLES} as this will cause problems with temporary tables. @item +Fixed problem in Innobase with with other character sets than latin1 and +alarms on Solaris. +@item Fixed a core-dump bug when using very complex query involving @code{DISTINCT} and summary functions. @item diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c index 1da95c8ba9c..ed1b55f6c59 100644 --- a/innobase/os/os0file.c +++ b/innobase/os/os0file.c @@ -905,7 +905,7 @@ os_aio_init( os_aio_segment_wait_events[i] = os_event_create(NULL); } -#ifdef POSIX_ASYNC_IO +#if defined(POSIX_ASYNC_IO) && defined(NOT_USED_WITH_MYSQL) /* Block aio signals from the current thread and its children: for this to work, the current thread must be the first created in the database, so that all its children will inherit its diff --git a/sql/ha_innobase.cc b/sql/ha_innobase.cc index cd8e1533e78..bf9f2a38740 100644 --- a/sql/ha_innobase.cc +++ b/sql/ha_innobase.cc @@ -930,13 +930,7 @@ innobase_mysql_cmp( case FIELD_TYPE_VAR_STRING: ret = my_sortncmp((const char*) a, a_length, (const char*) b, b_length); - if (ret < 0) { - return(-1); - } else if (ret > 0) { - return(1); - } else { - return(0); - } + return ret; default: assert(0); } |