Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2ff0334c
Commit
2ff0334c
authored
Mar 26, 2001
by
monty@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problem with Innobase and signals on Solaris
parent
add70fc1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
36 deletions
+45
-36
Docs/manual.texi
Docs/manual.texi
+43
-28
innobase/os/os0file.c
innobase/os/os0file.c
+1
-1
sql/ha_innobase.cc
sql/ha_innobase.cc
+1
-7
No files found.
Docs/manual.texi
View file @
2ff0334c
...
@@ -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
innobase/os/os0file.c
View file @
2ff0334c
...
@@ -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
);
}
}
#if
def 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
...
...
sql/ha_innobase.cc
View file @
2ff0334c
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment