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
896e890f
Commit
896e890f
authored
May 11, 2006
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add innobase_convert_string wrapper function to ha_innodb.cc, and a new file
ha_prototypes.h.
parent
03e29964
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
1 deletion
+43
-1
Makefile.am
Makefile.am
+1
-1
handler/ha_innodb.cc
handler/ha_innodb.cc
+20
-0
include/ha_prototypes.h
include/ha_prototypes.h
+22
-0
No files found.
Makefile.am
View file @
896e890f
...
...
@@ -76,7 +76,7 @@ EXTRA_DIST = include/btr0btr.h include/btr0btr.ic include/btr0cur.h include/btr
include/univ.i include/usr0sess.h include/usr0sess.ic include/usr0types.h
\
include/ut0byte.h include/ut0byte.ic include/ut0dbg.h include/ut0lst.h
\
include/ut0mem.h include/ut0mem.ic include/ut0rnd.h include/ut0rnd.ic
\
include/ut0sort.h include/ut0ut.h include/ut0ut.ic include/ut0vec.h include/ut0vec.ic
\
include/ut0sort.h include/ut0ut.h include/ut0ut.ic include/ut0vec.h include/ut0vec.ic
include/ha_prototypes.h
\
cmakelists.txt
noinst_LIBRARIES
=
libinnobase.a
...
...
handler/ha_innodb.cc
View file @
896e890f
...
...
@@ -134,6 +134,7 @@ extern "C" {
#include "../storage/innobase/include/fil0fil.h"
#include "../storage/innobase/include/trx0xa.h"
#include "../storage/innobase/include/thr0loc.h"
#include "../storage/innobase/include/ha_prototypes.h"
}
#define HA_INNOBASE_ROWS_IN_TABLE 10000
/* to get optimization right */
...
...
@@ -780,6 +781,25 @@ innobase_mysql_tmpfile(void)
return
(
fd2
);
}
/*************************************************************************
Wrapper around MySQL's copy_and_convert function, see it for
documentation. */
extern
"C"
ulint
innobase_convert_string
(
/*====================*/
void
*
to
,
ulint
to_length
,
CHARSET_INFO
*
to_cs
,
const
void
*
from
,
ulint
from_length
,
CHARSET_INFO
*
from_cs
,
uint
*
errors
)
{
return
(
copy_and_convert
((
char
*
)
to
,
to_length
,
to_cs
,
(
const
char
*
)
from
,
from_length
,
from_cs
,
errors
));
}
/*************************************************************************
Gets the InnoDB transaction handle for a MySQL handler object, creates
an InnoDB transaction struct if the corresponding MySQL thread struct still
...
...
include/ha_prototypes.h
0 → 100644
View file @
896e890f
#ifndef HA_INNODB_PROTOTYPES_H
#define HA_INNODB_PROTOTYPES_H
/* Prototypes for global functions in ha_innodb.cc that are called by
InnoDB's C-code. */
/*************************************************************************
Wrapper around MySQL's copy_and_convert function, see it for
documentation. */
ulint
innobase_convert_string
(
/*====================*/
void
*
to
,
ulint
to_length
,
CHARSET_INFO
*
to_cs
,
const
void
*
from
,
ulint
from_length
,
CHARSET_INFO
*
from_cs
,
uint
*
errors
);
#endif
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