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
0da7c255
Commit
0da7c255
authored
Nov 29, 2005
by
knielsen@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix byte * vs. char * mismatches that break Win32 compilation.
parent
0f9f53c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
sql/mysql_priv.h
sql/mysql_priv.h
+3
-3
sql/sql_base.cc
sql/sql_base.cc
+7
-7
sql/table.cc
sql/table.cc
+2
-2
No files found.
sql/mysql_priv.h
View file @
0da7c255
...
...
@@ -784,9 +784,9 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
bool
reset_auto_increment
);
bool
mysql_truncate
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
bool
dont_send_ok
);
bool
mysql_create_or_drop_trigger
(
THD
*
thd
,
TABLE_LIST
*
tables
,
bool
create
);
uint
create_table_def_key
(
THD
*
thd
,
byte
*
key
,
TABLE_LIST
*
table_list
,
uint
create_table_def_key
(
THD
*
thd
,
char
*
key
,
TABLE_LIST
*
table_list
,
bool
tmp_table
);
TABLE_SHARE
*
get_table_share
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
byte
*
key
,
TABLE_SHARE
*
get_table_share
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
char
*
key
,
uint
key_length
,
uint
db_flags
,
int
*
error
);
void
release_table_share
(
TABLE_SHARE
*
share
,
enum
release_type
type
);
TABLE_SHARE
*
get_cached_table_share
(
const
char
*
db
,
const
char
*
table_name
);
...
...
@@ -1396,7 +1396,7 @@ int format_number(uint inputflag,uint max_length,my_string pos,uint length,
my_string
*
errpos
);
/* table.cc */
TABLE_SHARE
*
alloc_table_share
(
TABLE_LIST
*
table_list
,
byte
*
key
,
TABLE_SHARE
*
alloc_table_share
(
TABLE_LIST
*
table_list
,
char
*
key
,
uint
key_length
);
void
init_tmp_table_share
(
TABLE_SHARE
*
share
,
const
char
*
key
,
uint
key_length
,
const
char
*
table_name
,
const
char
*
path
);
...
...
sql/sql_base.cc
View file @
0da7c255
...
...
@@ -38,7 +38,7 @@ static bool table_def_inited= 0;
static
int
open_unireg_entry
(
THD
*
thd
,
TABLE
*
entry
,
TABLE_LIST
*
table_list
,
const
char
*
alias
,
byte
*
cache_key
,
uint
cache_key_length
,
char
*
cache_key
,
uint
cache_key_length
,
MEM_ROOT
*
mem_root
);
static
void
free_cache_entry
(
TABLE
*
entry
);
static
void
mysql_rm_tmp_tables
(
void
);
...
...
@@ -171,7 +171,7 @@ static void check_unused(void)
Length of key
*/
uint
create_table_def_key
(
THD
*
thd
,
byte
*
key
,
TABLE_LIST
*
table_list
,
uint
create_table_def_key
(
THD
*
thd
,
char
*
key
,
TABLE_LIST
*
table_list
,
bool
tmp_table
)
{
uint
key_length
=
(
uint
)
(
strmov
(
strmov
(
key
,
table_list
->
db
)
+
1
,
...
...
@@ -273,7 +273,7 @@ uint cached_table_definitions(void)
# Share for table
*/
TABLE_SHARE
*
get_table_share
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
byte
*
key
,
TABLE_SHARE
*
get_table_share
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
char
*
key
,
uint
key_length
,
uint
db_flags
,
int
*
error
)
{
TABLE_SHARE
*
share
;
...
...
@@ -339,7 +339,7 @@ TABLE_SHARE *get_table_share(THD *thd, TABLE_LIST *table_list, byte *key,
(
void
)
pthread_mutex_lock
(
&
share
->
mutex
);
#endif
*
error
=
share
->
error
;
(
void
)
hash_delete
(
&
table_def_cache
,
(
char
*
)
share
);
(
void
)
hash_delete
(
&
table_def_cache
,
(
byte
*
)
share
);
DBUG_RETURN
(
0
);
}
share
->
ref_count
++
;
// Mark in use
...
...
@@ -411,7 +411,7 @@ found:
static
TABLE_SHARE
*
get_table_share_with_create
(
THD
*
thd
,
TABLE_LIST
*
table_list
,
byte
*
key
,
uint
key_length
,
char
*
key
,
uint
key_length
,
uint
db_flags
,
int
*
error
)
{
TABLE_SHARE
*
share
;
...
...
@@ -586,7 +586,7 @@ void release_table_share(TABLE_SHARE *share, enum release_type type)
TABLE_SHARE
*
get_cached_table_share
(
const
char
*
db
,
const
char
*
table_name
)
{
byte
key
[
NAME_LEN
*
2
+
2
];
char
key
[
NAME_LEN
*
2
+
2
];
TABLE_LIST
table_list
;
uint
key_length
;
safe_mutex_assert_owner
(
&
LOCK_open
);
...
...
@@ -2366,7 +2366,7 @@ void abort_locked_tables(THD *thd,const char *db, const char *table_name)
static
int
open_unireg_entry
(
THD
*
thd
,
TABLE
*
entry
,
TABLE_LIST
*
table_list
,
const
char
*
alias
,
byte
*
cache_key
,
uint
cache_key_length
,
char
*
cache_key
,
uint
cache_key_length
,
MEM_ROOT
*
mem_root
)
{
int
error
;
...
...
sql/table.cc
View file @
0da7c255
...
...
@@ -57,7 +57,7 @@ static byte *get_field_name(Field **buff, uint *length,
# Share
*/
TABLE_SHARE
*
alloc_table_share
(
TABLE_LIST
*
table_list
,
byte
*
key
,
TABLE_SHARE
*
alloc_table_share
(
TABLE_LIST
*
table_list
,
char
*
key
,
uint
key_length
)
{
MEM_ROOT
mem_root
;
...
...
@@ -1268,7 +1268,7 @@ int open_table_from_share(THD *thd, TABLE_SHARE *share, const char *alias,
outparam
->
field
=
field_ptr
;
record
=
(
char
*
)
outparam
->
record
[
0
]
-
1
;
/* Fieldstart = 1 */
record
=
(
byte
*
)
outparam
->
record
[
0
]
-
1
;
/* Fieldstart = 1 */
if
(
share
->
null_field_first
)
outparam
->
null_flags
=
(
uchar
*
)
record
+
1
;
else
...
...
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