Commit 653f620e authored by unknown's avatar unknown

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()
parent e7e243ed
...@@ -13529,36 +13529,44 @@ character}. @strong{MySQL} recognizes the following escape sequences: ...@@ -13529,36 +13529,44 @@ character}. @strong{MySQL} recognizes the following escape sequences:
@item \0 @item \0
An ASCII 0 (@code{NUL}) character. 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 \n (newline)
@findex newline (\n) @findex newline (\n)
@item \n @item \n
A newline character. A newline character.
@findex \t (tab)
@findex tab (\t)
@item \t
A tab character.
@findex \r (carriage return) @findex \r (carriage return)
@findex return (\r) @findex return (\r)
@findex carriage return (\r) @findex carriage return (\r)
@item \r @item \r
A carriage return character. A carriage return character.
@findex \b (backspace) @findex \t (tab)
@findex backspace (\b) @findex tab (\t)
@item \b @item \t
A backspace character. A tab character.
@findex \' (single quote)
@findex single quote (\')
@item \'
A single quote (@samp{'}) character.
@findex \" (double quote) @findex \z (Control-Z) ASCII(26)
@findex double quote (\") @findex (Control-Z) \z
@item \" @item \z
A double quote (@samp{"}) character. 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)
@findex escape (\\) @findex escape (\\)
...@@ -37258,10 +37266,12 @@ None. ...@@ -37258,10 +37266,12 @@ None.
You should use @code{mysql_real_escape_string()} instead! You should use @code{mysql_real_escape_string()} instead!
This is identical to @code{mysql_real_escape_string()} except that it takes This is identical to @code{mysql_real_escape_string()} except that it
the connection as the first argument. @code{mysql_real_escape_string()} takes the connection as the first
will escape the string according to the current character set while @code{mysql_escape_string()} argument. @code{mysql_real_escape_string()} will escape the string
does not respect the current charset setting. according to the current character set while
@code{mysql_escape_string()} does not respect the current charset
setting.
@findex @code{mysql_fetch_field()} @findex @code{mysql_fetch_field()}
@node mysql_fetch_field, mysql_fetch_fields, mysql_escape_string, C API functions @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. ...@@ -38365,12 +38375,14 @@ try reconnecting to the server before giving up.
@subsubheading Description @subsubheading Description
Encodes the string in @code{from} to an escaped SQL string, taking into This function is used to create a legal SQL string that you can use in a
account the current charset of the connection, that can be sent to the SQL statement. @xref{String syntax}.
server in a SQL statement, places the result in @code{to}, and adds a
terminating null byte. Characters encoded are @code{NUL} (ASCII 0), The string in @code{from} is encoded to an escaped SQL string, taking
@samp{\n}, @samp{\r}, @samp{\}, @samp{'}, @samp{"}, and Control-Z into account the current character set of the connection. The result is placed
(@pxref{Literals}). 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 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 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). ...@@ -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 Don't free the key cache on @code{FLUSH TABLES} as this will cause problems
with temporary tables. with temporary tables.
@item @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 Fixed a core-dump bug when using very complex query involving
@code{DISTINCT} and summary functions. @code{DISTINCT} and summary functions.
@item @item
...@@ -905,7 +905,7 @@ os_aio_init( ...@@ -905,7 +905,7 @@ os_aio_init(
os_aio_segment_wait_events[i] = os_event_create(NULL); 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: /* Block aio signals from the current thread and its children:
for this to work, the current thread must be the first created for this to work, the current thread must be the first created
in the database, so that all its children will inherit its in the database, so that all its children will inherit its
......
...@@ -930,13 +930,7 @@ innobase_mysql_cmp( ...@@ -930,13 +930,7 @@ innobase_mysql_cmp(
case FIELD_TYPE_VAR_STRING: case FIELD_TYPE_VAR_STRING:
ret = my_sortncmp((const char*) a, a_length, ret = my_sortncmp((const char*) a, a_length,
(const char*) b, b_length); (const char*) b, b_length);
if (ret < 0) { return ret;
return(-1);
} else if (ret > 0) {
return(1);
} else {
return(0);
}
default: default:
assert(0); assert(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment