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
36d3c604
Commit
36d3c604
authored
Nov 26, 2007
by
davi@endora.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/Users/davi/mysql/bugs/29592-5.0
into mysql.com:/Users/davi/mysql/bugs/29592-5.1
parents
a0be47a7
cdad8669
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
94 additions
and
180 deletions
+94
-180
include/mysql.h
include/mysql.h
+0
-10
include/mysql_h.ic
include/mysql_h.ic
+94
-96
libmysql/libmysql.c
libmysql/libmysql.c
+0
-72
libmysql/libmysql.def
libmysql/libmysql.def
+0
-1
libmysqld/libmysqld.def
libmysqld/libmysqld.def
+0
-1
No files found.
include/mysql.h
View file @
36d3c604
...
@@ -557,16 +557,6 @@ unsigned long STDCALL mysql_real_escape_string(MYSQL *mysql,
...
@@ -557,16 +557,6 @@ unsigned long STDCALL mysql_real_escape_string(MYSQL *mysql,
char
*
to
,
const
char
*
from
,
char
*
to
,
const
char
*
from
,
unsigned
long
length
);
unsigned
long
length
);
void
STDCALL
mysql_debug
(
const
char
*
debug
);
void
STDCALL
mysql_debug
(
const
char
*
debug
);
char
*
STDCALL
mysql_odbc_escape_string
(
MYSQL
*
mysql
,
char
*
to
,
unsigned
long
to_length
,
const
char
*
from
,
unsigned
long
from_length
,
void
*
param
,
char
*
(
*
extend_buffer
)
(
void
*
,
char
*
to
,
unsigned
long
*
length
));
void
STDCALL
myodbc_remove_escape
(
MYSQL
*
mysql
,
char
*
name
);
void
STDCALL
myodbc_remove_escape
(
MYSQL
*
mysql
,
char
*
name
);
unsigned
int
STDCALL
mysql_thread_safe
(
void
);
unsigned
int
STDCALL
mysql_thread_safe
(
void
);
my_bool
STDCALL
mysql_embedded
(
void
);
my_bool
STDCALL
mysql_embedded
(
void
);
...
...
include/mysql_h.ic
View file @
36d3c604
This diff is collapsed.
Click to expand it.
libmysql/libmysql.c
View file @
36d3c604
...
@@ -1629,78 +1629,6 @@ mysql_real_escape_string(MYSQL *mysql, char *to,const char *from,
...
@@ -1629,78 +1629,6 @@ mysql_real_escape_string(MYSQL *mysql, char *to,const char *from,
return
escape_string_for_mysql
(
mysql
->
charset
,
to
,
0
,
from
,
length
);
return
escape_string_for_mysql
(
mysql
->
charset
,
to
,
0
,
from
,
length
);
}
}
char
*
STDCALL
mysql_odbc_escape_string
(
MYSQL
*
mysql
,
char
*
to
,
ulong
to_length
,
const
char
*
from
,
ulong
from_length
,
void
*
param
,
char
*
(
*
extend_buffer
)
(
void
*
,
char
*
,
ulong
*
))
{
char
*
to_end
=
to
+
to_length
-
5
;
const
char
*
end
;
#ifdef USE_MB
my_bool
use_mb_flag
=
use_mb
(
mysql
->
charset
);
#endif
for
(
end
=
from
+
from_length
;
from
!=
end
;
from
++
)
{
if
(
to
>=
to_end
)
{
to_length
=
(
ulong
)
(
end
-
from
)
+
512
;
/* We want this much more */
if
(
!
(
to
=
(
*
extend_buffer
)(
param
,
to
,
&
to_length
)))
return
to
;
to_end
=
to
+
to_length
-
5
;
}
#ifdef USE_MB
{
int
l
;
if
(
use_mb_flag
&&
(
l
=
my_ismbchar
(
mysql
->
charset
,
from
,
end
)))
{
while
(
l
--
)
*
to
++
=
*
from
++
;
from
--
;
continue
;
}
}
#endif
switch
(
*
from
)
{
case
0
:
/* Must be escaped for 'mysql' */
*
to
++=
'\\'
;
*
to
++=
'0'
;
break
;
case
'\n'
:
/* Must be escaped for logs */
*
to
++=
'\\'
;
*
to
++=
'n'
;
break
;
case
'\r'
:
*
to
++=
'\\'
;
*
to
++=
'r'
;
break
;
case
'\\'
:
*
to
++=
'\\'
;
*
to
++=
'\\'
;
break
;
case
'\''
:
*
to
++=
'\\'
;
*
to
++=
'\''
;
break
;
case
'"'
:
/* Better safe than sorry */
*
to
++=
'\\'
;
*
to
++=
'"'
;
break
;
case
'\032'
:
/* This gives problems on Win32 */
*
to
++=
'\\'
;
*
to
++=
'Z'
;
break
;
default:
*
to
++=
*
from
;
}
}
return
to
;
}
void
STDCALL
void
STDCALL
myodbc_remove_escape
(
MYSQL
*
mysql
,
char
*
name
)
myodbc_remove_escape
(
MYSQL
*
mysql
,
char
*
name
)
{
{
...
...
libmysql/libmysql.def
View file @
36d3c604
...
@@ -78,7 +78,6 @@ EXPORTS
...
@@ -78,7 +78,6 @@ EXPORTS
mysql_next_result
mysql_next_result
mysql_num_fields
mysql_num_fields
mysql_num_rows
mysql_num_rows
mysql_odbc_escape_string
mysql_options
mysql_options
mysql_stmt_param_count
mysql_stmt_param_count
mysql_stmt_param_metadata
mysql_stmt_param_metadata
...
...
libmysqld/libmysqld.def
View file @
36d3c604
...
@@ -78,7 +78,6 @@ EXPORTS
...
@@ -78,7 +78,6 @@ EXPORTS
mysql_next_result
mysql_next_result
mysql_num_fields
mysql_num_fields
mysql_num_rows
mysql_num_rows
mysql_odbc_escape_string
mysql_options
mysql_options
mysql_ping
mysql_ping
mysql_query
mysql_query
...
...
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