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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e2c7d5d7
Commit
e2c7d5d7
authored
Jan 18, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows build fix
parent
193d1f6c
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
66 additions
and
58 deletions
+66
-58
VC++Files/client/mysqlclient.dsp
VC++Files/client/mysqlclient.dsp
+8
-4
VC++Files/libmysql/libmysql.def
VC++Files/libmysql/libmysql.def
+0
-1
VC++Files/libmysql/libmysql.dsp
VC++Files/libmysql/libmysql.dsp
+8
-4
VC++Files/mysys/mysys.dsp
VC++Files/mysys/mysys.dsp
+4
-4
VC++Files/sql/mysqld.dsp
VC++Files/sql/mysqld.dsp
+8
-20
VC++Files/strings/strings.dsp
VC++Files/strings/strings.dsp
+29
-0
include/typelib.h
include/typelib.h
+4
-4
myisam/mi_check.c
myisam/mi_check.c
+0
-16
myisam/rt_mbr.c
myisam/rt_mbr.c
+4
-4
sql/sql_test.cc
sql/sql_test.cc
+1
-1
No files found.
VC++Files/client/mysqlclient.dsp
View file @
e2c7d5d7
...
...
@@ -116,6 +116,10 @@ SOURCE="..\strings\ctype-big5.c"
# End Source File
# Begin Source File
SOURCE="..\strings\ctype-bin.c"
# End Source File
# Begin Source File
SOURCE="..\strings\ctype-czech.c"
# End Source File
# Begin Source File
...
...
@@ -204,10 +208,6 @@ SOURCE=..\mysys\mf_cache.c
# End Source File
# Begin Source File
SOURCE=..\mysys\mf_casecnv.c
# End Source File
# Begin Source File
SOURCE=..\mysys\mf_dirname.c
# End Source File
# Begin Source File
...
...
@@ -422,6 +422,10 @@ SOURCE=.\select_test.c
# End Source File
# Begin Source File
SOURCE=..\mysys\sha1.c
# End Source File
# Begin Source File
SOURCE=.\sql_string.cpp
# End Source File
# Begin Source File
...
...
VC++Files/libmysql/libmysql.def
View file @
e2c7d5d7
...
...
@@ -59,7 +59,6 @@ EXPORTS
list_add
list_delete
max_allowed_packet
my_casecmp
my_init
my_end
my_strdup
...
...
VC++Files/libmysql/libmysql.dsp
View file @
e2c7d5d7
...
...
@@ -127,6 +127,10 @@ SOURCE="..\strings\ctype-big5.c"
# End Source File
# Begin Source File
SOURCE="..\strings\ctype-bin.c"
# End Source File
# Begin Source File
SOURCE="..\strings\ctype-czech.c"
# End Source File
# Begin Source File
...
...
@@ -219,10 +223,6 @@ SOURCE=..\strings\longlong2str.c
# End Source File
# Begin Source File
SOURCE=..\mysys\mf_casecnv.c
# End Source File
# Begin Source File
SOURCE=..\mysys\mf_dirname.c
# End Source File
# Begin Source File
...
...
@@ -396,6 +396,10 @@ SOURCE=..\client\select_test.c
# End Source File
# Begin Source File
SOURCE=..\mysys\sha1.c
# End Source File
# Begin Source File
SOURCE=..\client\sql_string.cpp
# End Source File
# Begin Source File
...
...
VC++Files/mysys/mysys.dsp
View file @
e2c7d5d7
...
...
@@ -162,10 +162,6 @@ SOURCE=.\mf_cache.c
# End Source File
# Begin Source File
SOURCE=.\mf_casecnv.c
# End Source File
# Begin Source File
SOURCE=.\mf_dirname.c
# End Source File
# Begin Source File
...
...
@@ -234,6 +230,10 @@ SOURCE=.\mf_strip.c
# End Source File
# Begin Source File
SOURCE=.\mf_tempdir.c
# End Source File
# Begin Source File
SOURCE=.\mf_tempfile.c
# End Source File
# Begin Source File
...
...
VC++Files/sql/mysqld.dsp
View file @
e2c7d5d7
...
...
@@ -488,6 +488,10 @@ SOURCE=.\item_func.cpp
# End Source File
# Begin Source File
SOURCE=.\item_row.cpp
# End Source File
# Begin Source File
SOURCE=.\item_strfunc.cpp
!IF "$(CFG)" == "mysqld - Win32 Release"
...
...
@@ -678,26 +682,6 @@ SOURCE=.\mysqld.cpp
# End Source File
# Begin Source File
SOURCE=.\net_pkg.cpp
!IF "$(CFG)" == "mysqld - Win32 Release"
!ELSEIF "$(CFG)" == "mysqld - Win32 Debug"
# ADD CPP /G5
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "mysqld - Win32 nt"
!ELSEIF "$(CFG)" == "mysqld - Win32 Max nt"
!ELSEIF "$(CFG)" == "mysqld - Win32 Max"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\net_serv.cpp
# End Source File
# Begin Source File
...
...
@@ -963,6 +947,10 @@ SOURCE=.\sql_handler.cpp
# End Source File
# Begin Source File
SOURCE=.\sql_help.cpp
# End Source File
# Begin Source File
SOURCE=.\sql_insert.cpp
!IF "$(CFG)" == "mysqld - Win32 Release"
...
...
VC++Files/strings/strings.dsp
View file @
e2c7d5d7
...
...
@@ -104,6 +104,10 @@ SOURCE=.\bmove512.c
# End Source File
# Begin Source File
SOURCE=".\ctype-bin.c"
# End Source File
# Begin Source File
SOURCE=".\ctype-big5.c"
# End Source File
# Begin Source File
...
...
@@ -168,6 +172,18 @@ SOURCE=.\str2int.c
# End Source File
# Begin Source File
SOURCE=.\strcend.c
# End Source File
# Begin Source File
SOURCE=.\strend.c
# End Source File
# Begin Source File
SOURCE=.\strfill.c
# End Source File
# Begin Source File
SOURCE=.\Strings.asm
!IF "$(CFG)" == "strings - Win32 Release"
...
...
@@ -199,6 +215,19 @@ InputName=Strings
# End Source File
# Begin Source File
SOURCE=.\strmake.c
# End Source File
# Begin Source File
SOURCE=.\strmov.c
# End Source File
# Begin Source File
SOURCE=.\strnmov.c
# End Source File
# Begin Source File
SOURCE=.\strtol.c
# End Source File
# Begin Source File
...
...
include/typelib.h
View file @
e2c7d5d7
...
...
@@ -19,14 +19,14 @@
#define _typelib_h
typedef
struct
st_typelib
{
/* Different types saved here */
u
int
count
;
/* How many types */
u
nsigned
int
count
;
/* How many types */
const
char
*
name
;
/* Name of typelib */
const
char
**
type_names
;
}
TYPELIB
;
extern
int
find_type
(
char
*
x
,
TYPELIB
*
typelib
,
uint
full_name
);
extern
void
make_type
(
char
*
to
,
uint
nr
,
TYPELIB
*
typelib
);
extern
const
char
*
get_type
(
TYPELIB
*
typelib
,
uint
nr
);
extern
int
find_type
(
char
*
x
,
TYPELIB
*
typelib
,
u
nsigned
int
full_name
);
extern
void
make_type
(
char
*
to
,
u
nsigned
int
nr
,
TYPELIB
*
typelib
);
extern
const
char
*
get_type
(
TYPELIB
*
typelib
,
u
nsigned
int
nr
);
extern
TYPELIB
sql_protocol_typelib
;
...
...
myisam/mi_check.c
View file @
e2c7d5d7
...
...
@@ -62,22 +62,6 @@ static SORT_KEY_BLOCKS *alloc_key_blocks(MI_CHECK *param, uint blocks,
static
ha_checksum
mi_byte_checksum
(
const
byte
*
buf
,
uint
length
);
static
void
set_data_file_type
(
SORT_INFO
*
sort_info
,
MYISAM_SHARE
*
share
);
#ifdef __WIN__
static
double
ulonglong2double
(
ulonglong
value
)
{
longlong
nr
=
(
longlong
)
value
;
if
(
nr
>=
0
)
return
(
double
)
nr
;
return
(
18446744073709551616
.
0
+
(
double
)
nr
);
}
#if SIZEOF_OFF_T > 4
#define my_off_t2double(A) ulonglong2double(A)
#else
#define my_off_t2double(A) ((double) (A))
#endif
/* SIZEOF_OFF_T > 4 */
#endif
/* __WIN__ */
void
myisamchk_init
(
MI_CHECK
*
param
)
{
bzero
((
gptr
)
param
,
sizeof
(
*
param
));
...
...
myisam/rt_mbr.c
View file @
e2c7d5d7
...
...
@@ -228,7 +228,7 @@ double rtree_rect_volume(HA_KEYSEG *keyseg, uchar *a, uint key_length)
case
HA_KEYTYPE_LONGLONG
:
RT_VOL_KORR
(
longlong
,
mi_sint8korr
,
8
,
(
double
));
case
HA_KEYTYPE_ULONGLONG
:
RT_VOL_KORR
(
ulonglong
,
mi_u
int8korr
,
8
,
ulonglong2double
);
RT_VOL_KORR
(
longlong
,
mi_s
int8korr
,
8
,
ulonglong2double
);
#endif
case
HA_KEYTYPE_FLOAT
:
RT_VOL_GET
(
float
,
mi_float4get
,
4
,
(
double
));
...
...
@@ -311,7 +311,7 @@ int rtree_d_mbr(HA_KEYSEG *keyseg, uchar *a, uint key_length, double *res)
case
HA_KEYTYPE_LONGLONG
:
RT_D_MBR_KORR
(
longlong
,
mi_sint8korr
,
8
,
(
double
));
case
HA_KEYTYPE_ULONGLONG
:
RT_D_MBR_KORR
(
ulonglong
,
mi_u
int8korr
,
8
,
ulonglong2double
);
RT_D_MBR_KORR
(
longlong
,
mi_s
int8korr
,
8
,
ulonglong2double
);
#endif
case
HA_KEYTYPE_FLOAT
:
RT_D_MBR_GET
(
float
,
mi_float4get
,
4
,
(
double
));
...
...
@@ -516,7 +516,7 @@ double rtree_overlapping_area(HA_KEYSEG *keyseg, uchar* a, uchar* b,
case
HA_KEYTYPE_LONGLONG
:
RT_OVL_AREA_KORR
(
longlong
,
mi_sint8korr
,
8
);
case
HA_KEYTYPE_ULONGLONG
:
RT_OVL_AREA_KORR
(
ulonglong
,
mi_u
int8korr
,
8
);
RT_OVL_AREA_KORR
(
longlong
,
mi_s
int8korr
,
8
);
#endif
case
HA_KEYTYPE_FLOAT
:
RT_OVL_AREA_GET
(
float
,
mi_float4get
,
4
);
...
...
@@ -614,7 +614,7 @@ double rtree_area_increase(HA_KEYSEG *keyseg, uchar* a, uchar* b,
case
HA_KEYTYPE_LONGLONG
:
RT_AREA_INC_KORR
(
longlong
,
mi_sint8korr
,
8
);
case
HA_KEYTYPE_ULONGLONG
:
RT_AREA_INC_KORR
(
ulonglong
,
mi_u
int8korr
,
8
);
RT_AREA_INC_KORR
(
longlong
,
mi_s
int8korr
,
8
);
#endif
case
HA_KEYTYPE_FLOAT
:
RT_AREA_INC_GET
(
float
,
mi_float4get
,
4
);
...
...
sql/sql_test.cc
View file @
e2c7d5d7
...
...
@@ -276,7 +276,6 @@ static void display_table_locks (void)
VOID
(
pthread_mutex_unlock
(
&
lock
->
mutex
));
}
VOID
(
pthread_mutex_unlock
(
&
THR_LOCK_lock
));
uint
i
;
if
(
!
saved_table_locks
.
elements
)
goto
end
;
qsort
((
gptr
)
dynamic_element
(
&
saved_table_locks
,
0
,
TABLE_LOCK_INFO
*
),
saved_table_locks
.
elements
,
sizeof
(
TABLE_LOCK_INFO
),(
qsort_cmp
)
dl_compare
);
...
...
@@ -284,6 +283,7 @@ static void display_table_locks (void)
puts
(
"
\n
Thread database.table_name Locked/Waiting Lock_type
\n
"
);
unsigned
int
i
;
for
(
i
=
0
;
i
<
saved_table_locks
.
elements
;
i
++
)
{
TABLE_LOCK_INFO
*
dl_ptr
=
dynamic_element
(
&
saved_table_locks
,
i
,
TABLE_LOCK_INFO
*
);
...
...
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