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
da2abaf8
Commit
da2abaf8
authored
Oct 08, 2002
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fixes to be able to compile MySQL with VC++
parent
22653586
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
146 additions
and
63 deletions
+146
-63
VC++Files/client/mysqlclient.dsp
VC++Files/client/mysqlclient.dsp
+4
-0
VC++Files/fix-project-files
VC++Files/fix-project-files
+7
-0
VC++Files/libmysql/libmysql.dsp
VC++Files/libmysql/libmysql.dsp
+5
-0
VC++Files/libmysqld/libmysqld.dsp
VC++Files/libmysqld/libmysqld.dsp
+26
-13
VC++Files/myisam/myisam.dsp
VC++Files/myisam/myisam.dsp
+24
-0
VC++Files/mysys/mysys.dsp
VC++Files/mysys/mysys.dsp
+8
-4
VC++Files/sql/mysqld.dsp
VC++Files/sql/mysqld.dsp
+39
-7
VC++Files/strings/strings.dsp
VC++Files/strings/strings.dsp
+4
-0
client/mysql.cc
client/mysql.cc
+2
-2
heap/_check.c
heap/_check.c
+3
-5
include/mysql.h
include/mysql.h
+5
-5
libmysql/libmysql.def
libmysql/libmysql.def
+2
-3
sql/ha_innodb.cc
sql/ha_innodb.cc
+2
-2
sql/init.cc
sql/init.cc
+0
-1
sql/log.cc
sql/log.cc
+0
-1
sql/net_pkg.cc
sql/net_pkg.cc
+2
-2
sql/sql_db.cc
sql/sql_db.cc
+2
-5
sql/sql_lex.h
sql/sql_lex.h
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+3
-2
sql/sql_prepare.cc
sql/sql_prepare.cc
+0
-1
sql/sql_select.cc
sql/sql_select.cc
+3
-4
sql/sql_show.cc
sql/sql_show.cc
+2
-3
sql/sql_union.cc
sql/sql_union.cc
+2
-2
No files found.
VC++Files/client/mysqlclient.dsp
View file @
da2abaf8
...
...
@@ -136,6 +136,10 @@ SOURCE="..\strings\ctype-latin1_de.c"
# End Source File
# Begin Source File
SOURCE="..\strings\ctype-simple.c"
# End Source File
# Begin Source File
SOURCE="..\strings\ctype-sjis.c"
# End Source File
# Begin Source File
...
...
VC++Files/fix-project-files
0 → 100755
View file @
da2abaf8
#!/bin/sh
#
# Change linefeed -> return+linefeed for all VC++ project files
#
find
.
\(
-name
"*.dsp"
-o
-name
"*.dsw"
\)
-print
|
grep
-v
"SCCS"
| xargs replace
'\r\$'
' '
'\$'
' '
--
VC++Files/libmysql/libmysql.dsp
View file @
da2abaf8
...
...
@@ -147,6 +147,10 @@ SOURCE="..\strings\ctype-latin1_de.c"
# End Source File
# Begin Source File
SOURCE="..\strings\ctype-simple.c"
# End Source File
# Begin Source File
SOURCE="..\strings\ctype-sjis.c"
# End Source File
# Begin Source File
...
...
@@ -256,6 +260,7 @@ SOURCE=..\mysys\my_alloc.c
# Begin Source File
SOURCE=..\mysys\my_compress.c
# ADD CPP /I "../zlib"
# End Source File
# Begin Source File
...
...
VC++Files/libmysqld/libmysqld.dsp
View file @
da2abaf8
...
...
@@ -43,8 +43,7 @@ RSC=rc.exe
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBMYSQLD_EXPORTS" /YX /FD /c
# ADD CPP /nologo /G6 /MT /W3 /O2 /I "../include" /I "../regex" /I "../sql" /I "../bdb/build_win32" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "USE_SYMDIR" /D "SIGNAL_WITH_VIO_CLOSE" /D "HAVE_DLOPEN" /D "EMBEDDED_LIBRARY" /D "HAVE_INNOBASE_DB" /D "DBUG_OFF" /D "USE_TLS" /D "__WIN__" /FR /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD CPP /nologo /G6 /MT /W3 /O2 /I "../include" /I "../regex" /I "../sql" /I "../bdb/build_win32" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "USE_SYMDIR" /D "SIGNAL_WITH_VIO_CLOSE" /D "HAVE_DLOPEN" /D "EMBEDDED_LIBRARY" /D "HAVE_INNOBASE_DB" /D "DBUG_OFF" /D "USE_TLS" /D "__WIN__" /FR /FD /mktyplib203 /win32 # ADD BASE MTL /c
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x416 /d "NDEBUG"
# ADD RSC /l 0x416 /d "NDEBUG"
...
...
@@ -53,8 +52,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_release\myisam.lib ..\lib_release\myisammrg.lib ..\lib_release\mysys.lib ..\lib_release\strings.lib ..\lib_release\regex.lib ..\lib_release\heap.lib ..\lib_release\innodb.lib ..\lib_release\bdb.lib ..\lib_release\zlib.lib /nologo /dll /machine:I386 /out:"../lib_release/libmysqld.dll" /implib:"../lib_release/libmysqld.lib"
# SUBTRACT LINK32 /pdb:none
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_release\myisam.lib ..\lib_release\myisammrg.lib ..\lib_release\mysys.lib ..\lib_release\strings.lib ..\lib_release\regex.lib ..\lib_release\heap.lib ..\lib_release\innodb.lib ..\lib_release\bdb.lib ..\lib_release\zlib.lib # SUBTRACT LINK32 /nologo /dll /pdb:none /machine:I386 /out:"../lib_release/libmysqld.dll" /implib:"../lib_release/libmysqld.lib"
!ELSEIF "$(CFG)" == "libmysqld - Win32 Debug"
...
...
@@ -70,8 +68,7 @@ LINK32=link.exe
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBMYSQLD_EXPORTS" /YX /FD /GZ /c
# ADD CPP /nologo /MT /W3 /Gm /Zi /Od /I "../include" /I "../sql" /I "../regex" /I "../bdb/build_win32" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "HAVE_BERKELEY_DB" /D "USE_SYMDIR" /D "SIGNAL_WITH_VIO_CLOSE" /D "HAVE_DLOPEN" /D "EMBEDDED_LIBRARY" /D "HAVE_INNOBASE_DB" /D "USE_TLS" /D "__WIN__" /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD CPP /nologo /MT /W3 /Gm /Zi /Od /I "../include" /I "../sql" /I "../regex" /I "../bdb/build_win32" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "HAVE_BERKELEY_DB" /D "USE_SYMDIR" /D "SIGNAL_WITH_VIO_CLOSE" /D "HAVE_DLOPEN" /D "EMBEDDED_LIBRARY" /D "HAVE_INNOBASE_DB" /D "USE_TLS" /D "__WIN__" /FD /GZ /mktyplib203 /win32 # ADD BASE MTL /c
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x416 /d "_DEBUG"
# ADD RSC /l 0x416 /d "_DEBUG"
...
...
@@ -80,8 +77,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_debug\dbug.lib ..\lib_debug\mysys.lib ..\lib_debug\strings.lib ..\lib_debug\regex.lib ..\lib_debug\heap.lib ..\lib_debug\innodb.lib /nologo /dll /incremental:no /debug /machine:I386 /nodefaultlib:"LIBCMTD" /out:"../lib_debug/libmysqld.dll" /implib:"../lib_debug/libmysqld.lib" /pdbtype:sept
# SUBTRACT LINK32 /pdb:none
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_debug\dbug.lib ..\lib_debug\mysys.lib ..\lib_debug\strings.lib ..\lib_debug\regex.lib ..\lib_debug\heap.lib ..\lib_debug\innodb.lib # SUBTRACT LINK32 /nologo /dll /pdb:none /debug /machine:I386 /nodefaultlib:"LIBCMTD" /out:"../lib_debug/libmysqld.dll" /implib:"../lib_debug/libmysqld.lib"
!ENDIF
...
...
@@ -119,6 +115,10 @@ SOURCE=..\libmysql\get_password.c
# End Source File
# Begin Source File
SOURCE=..\sql\gstream.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\ha_berkeley.cpp
# End Source File
# Begin Source File
...
...
@@ -176,6 +176,7 @@ SOURCE=..\sql\item_create.cpp
# Begin Source File
SOURCE=..\sql\item_func.cpp
# ADD CPP /I "../zlib"
# End Source File
# Begin Source File
...
...
@@ -183,6 +184,10 @@ SOURCE=..\sql\item_strfunc.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\item_subselect.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\item_sum.cpp
# End Source File
# Begin Source File
...
...
@@ -271,7 +276,7 @@ SOURCE=..\sql\set_var.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\s
lave.cpp
SOURCE=..\sql\s
patial.cpp
# End Source File
# Begin Source File
...
...
@@ -307,10 +312,18 @@ SOURCE=..\sql\sql_delete.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\sql_derived.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\sql_do.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\sql_error.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\sql_handler.cpp
# End Source File
# Begin Source File
...
...
@@ -327,10 +340,6 @@ SOURCE=..\sql\sql_list.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\sql_load.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\sql_manager.cpp
# End Source File
# Begin Source File
...
...
@@ -340,6 +349,10 @@ SOURCE=..\sql\sql_map.cpp
# Begin Source File
SOURCE=..\sql\sql_parse.cpp
# End Source File
# Begin Source File
SOURCE=..\sql\sql_prepare.cpp
# End Source File
# Begin Source File
...
...
VC++Files/myisam/myisam.dsp
View file @
da2abaf8
...
...
@@ -265,8 +265,28 @@ SOURCE=.\mi_write.c
# End Source File
# Begin Source File
SOURCE=.\rt_index.c
# End Source File
# Begin Source File
SOURCE=.\rt_key.c
# End Source File
# Begin Source File
SOURCE=.\rt_mbr.c
# End Source File
# Begin Source File
SOURCE=.\rt_split.c
# End Source File
# Begin Source File
SOURCE=.\sort.c
# End Source File
# Begin Source File
SOURCE=.\sp_key.c
# End Source File
# End Group
# Begin Group "Header Files"
...
...
@@ -279,6 +299,10 @@ SOURCE=.\ft_eval.h
SOURCE=.\myisamdef.h
# End Source File
# Begin Source File
SOURCE=.\rt_index.h
# End Source File
# End Group
# End Target
# End Project
VC++Files/mysys/mysys.dsp
View file @
da2abaf8
...
...
@@ -26,7 +26,7 @@ CFG=mysys - Win32 Debug
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=
xicl6
.exe
CPP=
cl
.exe
RSC=rc.exe
!IF "$(CFG)" == "mysys - Win32 Release"
...
...
@@ -49,7 +49,7 @@ RSC=rc.exe
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=
xilink6
.exe -lib
LIB32=
link
.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"..\lib_release\mysys.lib"
...
...
@@ -73,7 +73,7 @@ LIB32=xilink6.exe -lib
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=
xilink6
.exe -lib
LIB32=
link
.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"..\lib_debug\mysys.lib"
...
...
@@ -98,7 +98,7 @@ LIB32=xilink6.exe -lib
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=
xilink6
.exe -lib
LIB32=
link
.exe -lib
# ADD BASE LIB32 /nologo /out:"..\lib_release\mysys.lib"
# ADD LIB32 /nologo /out:"..\lib_release\mysys-max.lib"
...
...
@@ -339,6 +339,10 @@ SOURCE=.\my_getwd.c
# End Source File
# Begin Source File
SOURCE=.\my_handler.c
# End Source File
# Begin Source File
SOURCE=.\my_init.c
# End Source File
# Begin Source File
...
...
VC++Files/sql/mysqld.dsp
View file @
da2abaf8
...
...
@@ -28,7 +28,7 @@ CFG=mysqld - Win32 Release
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=
xicl6
.exe
CPP=
cl
.exe
RSC=rc.exe
!IF "$(CFG)" == "mysqld - Win32 Release"
...
...
@@ -52,7 +52,7 @@ RSC=rc.exe
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=
xilink6
.exe
LINK32=
link
.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_release\vio.lib ..\lib_release\isam.lib ..\lib_release\merge.lib ..\lib_release\mysys.lib ..\lib_release\strings.lib ..\lib_release\regex.lib ..\lib_release\heap.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"../client_release/mysqld-opt.exe"
# SUBTRACT LINK32 /debug
...
...
@@ -78,7 +78,7 @@ LINK32=xilink6.exe
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=
xilink6
.exe
LINK32=
link
.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_debug\dbug.lib ..\lib_debug\vio.lib ..\lib_debug\isam.lib ..\lib_debug\merge.lib ..\lib_debug\mysys.lib ..\lib_debug\strings.lib ..\lib_debug\regex.lib ..\lib_debug\heap.lib ..\lib_debug\bdb.lib ..\lib_debug\innodb.lib /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"../client_debug/mysqld.exe" /pdbtype:sept
...
...
@@ -105,7 +105,7 @@ LINK32=xilink6.exe
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=
xilink6
.exe
LINK32=
link
.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_release\dbug.lib ..\lib_release\isam.lib ..\lib_release\merge.lib ..\lib_release\mysys.lib ..\lib_release\strings.lib ..\lib_release\regex.lib ..\lib_release\heap.lib /nologo /subsystem:console /debug /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_release\vio.lib ..\lib_release\isam.lib ..\lib_release\merge.lib ..\lib_release\myisam.lib ..\lib_release\myisammrg.lib ..\lib_release\mysys.lib ..\lib_release\strings.lib ..\lib_release\regex.lib ..\lib_release\heap.lib ..\lib_release\innodb.lib ..\lib_release\zlib.lib /nologo /subsystem:console /map /machine:I386 /out:"../client_release/mysqld-nt.exe"
# SUBTRACT LINK32 /pdb:none /debug
...
...
@@ -133,7 +133,7 @@ LINK32=xilink6.exe
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=
xilink6
.exe
LINK32=
link
.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_release\isam.lib ..\lib_release\merge.lib ..\lib_release\myisam.lib ..\lib_release\myisammrg.lib ..\lib_release\mysys.lib ..\lib_release\strings.lib ..\lib_release\regex.lib ..\lib_release\heap.lib ..\lib_release\zlib.lib /nologo /subsystem:console /map /machine:I386 /out:"../client_release/mysqld-nt.exe"
# SUBTRACT BASE LINK32 /pdb:none /debug
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_release\vio.lib ..\lib_release\isam.lib ..\lib_release\merge.lib ..\lib_release\myisam.lib ..\lib_release\myisammrg.lib ..\lib_release\mysys-max.lib ..\lib_release\strings.lib ..\lib_release\regex.lib ..\lib_release\heap.lib ..\lib_release\zlib.lib ..\lib_release\innodb.lib ..\lib_release\bdb.lib /nologo /subsystem:console /map /machine:I386 /out:"../client_release/mysqld-max-nt.exe"
...
...
@@ -162,7 +162,7 @@ LINK32=xilink6.exe
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=
xilink6
.exe
LINK32=
link
.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_release\isam.lib ..\lib_release\merge.lib ..\lib_release\mysys.lib ..\lib_release\strings.lib ..\lib_release\regex.lib ..\lib_release\heap.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /out:"../client_release/mysqld-opt.exe"
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Wsock32.lib ..\lib_release\vio.lib ..\lib_release\isam.lib ..\lib_release\merge.lib ..\lib_release\myisam.lib ..\lib_release\myisammrg.lib ..\lib_release\mysys-max.lib ..\lib_release\strings.lib ..\lib_release\regex.lib ..\lib_release\heap.lib ..\lib_release\innodb.lib ..\lib_release\bdb.lib ..\lib_release\zlib.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"../client_release/mysqld-max.exe"
# SUBTRACT LINK32 /debug
...
...
@@ -278,6 +278,10 @@ SOURCE=.\filesort.cpp
# End Source File
# Begin Source File
SOURCE=.\gstream.cpp
# End Source File
# Begin Source File
SOURCE=.\ha_berkeley.cpp
# End Source File
# Begin Source File
...
...
@@ -456,17 +460,25 @@ SOURCE=.\item_func.cpp
!IF "$(CFG)" == "mysqld - Win32 Release"
# ADD CPP /I "../zlib"
!ELSEIF "$(CFG)" == "mysqld - Win32 Debug"
# ADD CPP /G5
# ADD CPP /G5
/I "../zlib"
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "mysqld - Win32 nt"
# ADD CPP /I "../zlib"
!ELSEIF "$(CFG)" == "mysqld - Win32 Max nt"
# ADD CPP /I "../zlib"
!ELSEIF "$(CFG)" == "mysqld - Win32 Max"
# ADD CPP /I "../zlib"
!ENDIF
# End Source File
...
...
@@ -492,6 +504,10 @@ SOURCE=.\item_strfunc.cpp
# End Source File
# Begin Source File
SOURCE=.\item_subselect.cpp
# End Source File
# Begin Source File
SOURCE=.\item_sum.cpp
!IF "$(CFG)" == "mysqld - Win32 Release"
...
...
@@ -811,6 +827,10 @@ SOURCE=.\slave.cpp
# End Source File
# Begin Source File
SOURCE=.\spatial.cpp
# End Source File
# Begin Source File
SOURCE=.\sql_acl.cpp
!IF "$(CFG)" == "mysqld - Win32 Release"
...
...
@@ -927,10 +947,18 @@ SOURCE=.\sql_delete.cpp
# End Source File
# Begin Source File
SOURCE=.\sql_derived.cpp
# End Source File
# Begin Source File
SOURCE=.\sql_do.cpp
# End Source File
# Begin Source File
SOURCE=.\sql_error.cpp
# End Source File
# Begin Source File
SOURCE=.\sql_handler.cpp
# End Source File
# Begin Source File
...
...
@@ -1059,6 +1087,10 @@ SOURCE=.\sql_parse.cpp
# End Source File
# Begin Source File
SOURCE=.\sql_prepare.cpp
# End Source File
# Begin Source File
SOURCE=.\sql_rename.cpp
# End Source File
# Begin Source File
...
...
VC++Files/strings/strings.dsp
View file @
da2abaf8
...
...
@@ -128,6 +128,10 @@ SOURCE=".\ctype-latin1_de.c"
# End Source File
# Begin Source File
SOURCE=".\ctype-simple.c"
# End Source File
# Begin Source File
SOURCE=".\ctype-sjis.c"
# End Source File
# Begin Source File
...
...
client/mysql.cc
View file @
da2abaf8
...
...
@@ -91,8 +91,8 @@ extern "C" {
#define vidattr(A) {} // Can't get this to work
#endif
#ifdef
__WIN__
#define cmp_database(A,B) my_strcasecmp(
(A),
(B))
#ifdef
FN_NO_CASE_SENCE
#define cmp_database(A,B) my_strcasecmp(
system_charset_info, (A),
(B))
#else
#define cmp_database(A,B) strcmp((A),(B))
#endif
...
...
heap/_check.c
View file @
da2abaf8
...
...
@@ -116,13 +116,11 @@ static int check_one_rb_key(HP_INFO *info, uint keynr, ulong records,
SEARCH_FIND
|
SEARCH_SAME
,
&
not_used
))
{
error
=
1
;
DBUG_PRINT
(
"error"
,(
"Record in wrong link:
Link
%d Record: %lx
\n
"
,
link
,
recpos
));
DBUG_PRINT
(
"error"
,(
"Record in wrong link:
key:
%d Record: %lx
\n
"
,
keynr
,
recpos
));
}
else
{
found
++
;
}
key
=
tree_search_next
(
&
keydef
->
rb_tree
,
&
info
->
last_pos
,
offsetof
(
TREE_ELEMENT
,
left
),
offsetof
(
TREE_ELEMENT
,
right
));
...
...
@@ -130,7 +128,7 @@ static int check_one_rb_key(HP_INFO *info, uint keynr, ulong records,
}
if
(
found
!=
records
)
{
DBUG_PRINT
(
"error"
,(
"Found %l
d of %ld records"
));
DBUG_PRINT
(
"error"
,(
"Found %l
u of %lu records"
,
found
,
records
));
error
=
1
;
}
if
(
print_status
)
...
...
include/mysql.h
View file @
da2abaf8
...
...
@@ -275,7 +275,7 @@ my_ulonglong STDCALL mysql_affected_rows(MYSQL *mysql);
my_ulonglong
STDCALL
mysql_insert_id
(
MYSQL
*
mysql
);
unsigned
int
STDCALL
mysql_errno
(
MYSQL
*
mysql
);
const
char
*
STDCALL
mysql_error
(
MYSQL
*
mysql
);
uint
STDCALL
mysql_warning_count
(
MYSQL
*
mysql
);
u
nsigned
int
STDCALL
mysql_warning_count
(
MYSQL
*
mysql
);
const
char
*
STDCALL
mysql_info
(
MYSQL
*
mysql
);
unsigned
long
STDCALL
mysql_thread_id
(
MYSQL
*
mysql
);
const
char
*
STDCALL
mysql_character_set_name
(
MYSQL
*
mysql
);
...
...
@@ -427,7 +427,7 @@ typedef struct st_mysql_bind
/* The following are for internal use. Set by mysql_bind_param */
long
bind_length
;
/* Default length of data */
my_bool
long_ended
;
/* All data supplied for long */
u
int
param_number
;
/* For null count and error messages */
u
nsigned
int
param_number
;
/* For null count and error messages */
void
(
*
store_param_func
)(
NET
*
net
,
struct
st_mysql_bind
*
param
);
char
*
(
*
fetch_result
)(
struct
st_mysql_bind
*
,
const
char
*
row
);
}
MYSQL_BIND
;
...
...
@@ -448,7 +448,7 @@ typedef struct st_mysql_stmt
unsigned
long
field_count
;
/* fields count */
unsigned
long
long_length
;
/* long buffer alloced length */
unsigned
long
stmt_id
;
/* Id for prepared statement */
u
int
last_errno
;
/* error code */
u
nsigned
int
last_errno
;
/* error code */
enum
MY_STMT_STATE
state
;
/* statement state */
char
last_error
[
MYSQL_ERRMSG_SIZE
];
/* error message */
my_bool
long_alloced
;
/* flag to indicate long alloced */
...
...
@@ -463,14 +463,14 @@ unsigned long STDCALL mysql_param_count(MYSQL_STMT * stmt);
my_bool
STDCALL
mysql_bind_param
(
MYSQL_STMT
*
stmt
,
MYSQL_BIND
*
bind
);
my_bool
STDCALL
mysql_bind_result
(
MYSQL_STMT
*
stmt
,
MYSQL_BIND
*
bind
);
my_bool
STDCALL
mysql_stmt_close
(
MYSQL_STMT
*
stmt
);
uint
STDCALL
mysql_stmt_errno
(
MYSQL_STMT
*
stmt
);
u
nsigned
int
STDCALL
mysql_stmt_errno
(
MYSQL_STMT
*
stmt
);
const
char
*
STDCALL
mysql_stmt_error
(
MYSQL_STMT
*
stmt
);
my_bool
STDCALL
mysql_commit
(
MYSQL
*
mysql
);
my_bool
STDCALL
mysql_rollback
(
MYSQL
*
mysql
);
my_bool
STDCALL
mysql_autocommit
(
MYSQL
*
mysql
,
my_bool
auto_mode
);
int
STDCALL
mysql_fetch
(
MYSQL_STMT
*
stmt
);
my_bool
STDCALL
mysql_send_long_data
(
MYSQL_STMT
*
stmt
,
uint
param_number
,
u
nsigned
int
param_number
,
const
char
*
data
,
unsigned
long
length
,
my_bool
last_data
);
...
...
libmysql/libmysql.def
View file @
da2abaf8
LIBRARY LIBMYSQL
DESCRIPTION 'MySQL 4.
0
Client Library'
VERSION
5
.0
DESCRIPTION 'MySQL 4.
1
Client Library'
VERSION
6
.0
EXPORTS
mysql_affected_rows
mysql_close
...
...
@@ -59,7 +59,6 @@ EXPORTS
list_add
list_delete
max_allowed_packet
my_casecmp
my_init
my_end
my_strdup
...
...
sql/ha_innodb.cc
View file @
da2abaf8
...
...
@@ -3155,8 +3155,8 @@ innobase_drop_database(
memcpy
(
namebuf
,
ptr
,
len
);
namebuf
[
len
]
=
'/'
;
namebuf
[
len
+
1
]
=
'\0'
;
#ifdef
__WIN__
casedn_str
(
namebuf
);
#ifdef
FN_NO_CASE_SENCE
my_casedn_str
(
system_charset_info
,
namebuf
);
#endif
trx
=
trx_allocate_for_mysql
();
...
...
sql/init.cc
View file @
da2abaf8
...
...
@@ -24,7 +24,6 @@ void unireg_init(ulong options)
{
uint
i
;
double
nr
;
CHARSET_INFO
*
cs
;
DBUG_ENTER
(
"unireg_init"
);
MYSYS_PROGRAM_DONT_USE_CURSES
();
...
...
sql/log.cc
View file @
da2abaf8
...
...
@@ -973,7 +973,6 @@ bool MYSQL_LOG::write(THD *thd,enum enum_server_command command,
last_time
=
skr
;
struct
tm
tm_tmp
;
struct
tm
*
start
;
ulong
length
;
localtime_r
(
&
skr
,
&
tm_tmp
);
start
=&
tm_tmp
;
/* Note that my_b_write() assumes it knows the length for this */
...
...
sql/net_pkg.cc
View file @
da2abaf8
...
...
@@ -273,12 +273,12 @@ send_eof(THD *thd, bool no_flush)
{
if
(
!
no_flush
&&
(
thd
->
client_capabilities
&
CLIENT_PROTOCOL_41
))
{
char
buff
[
5
];
u
char
buff
[
5
];
uint
tmp
=
min
(
thd
->
total_warn_count
,
65535
);
buff
[
0
]
=
254
;
int2store
(
buff
+
1
,
tmp
);
int2store
(
buff
+
3
,
0
);
// No flags yet
VOID
(
my_net_write
(
net
,
buff
,
5
));
VOID
(
my_net_write
(
net
,
(
char
*
)
buff
,
5
));
VOID
(
net_flush
(
net
));
}
else
...
...
sql/sql_db.cc
View file @
da2abaf8
...
...
@@ -69,7 +69,6 @@ static bool write_db_opt(const char *path, HA_CREATE_INFO *create)
error
=
0
;
my_close
(
file
,
MYF
(
0
));
}
exit:
return
error
;
}
...
...
@@ -104,7 +103,7 @@ static bool load_db_opt(const char *path, HA_CREATE_INFO *create)
IO_CACHE
cache
;
init_io_cache
(
&
cache
,
file
,
IO_SIZE
,
READ_CACHE
,
0
,
0
,
MYF
(
0
));
while
((
int
)
(
nbytes
=
my_b_gets
(
&
cache
,
(
byte
*
)
buf
,
sizeof
(
buf
)))
>
0
)
while
((
int
)
(
nbytes
=
my_b_gets
(
&
cache
,
(
char
*
)
buf
,
sizeof
(
buf
)))
>
0
)
{
char
*
pos
=
buf
+
nbytes
-
1
;
/* Remove end space and control characters */
...
...
@@ -251,10 +250,8 @@ int mysql_create_db(THD *thd, char *db, HA_CREATE_INFO *create_info,
int
mysql_alter_db
(
THD
*
thd
,
const
char
*
db
,
HA_CREATE_INFO
*
create_info
)
{
char
path
[
FN_REFLEN
+
16
];
MY_DIR
*
dirp
;
long
result
=
1
;
int
error
=
0
;
register
File
file
;
uint
create_options
=
create_info
?
create_info
->
options
:
0
;
DBUG_ENTER
(
"mysql_alter_db"
);
...
...
@@ -602,7 +599,7 @@ bool mysql_change_db(THD *thd, const char *name)
int
mysqld_show_create_db
(
THD
*
thd
,
const
char
*
dbname
)
{
int
length
,
db_length
;
int
length
;
char
path
[
FN_REFLEN
],
*
to
;
uint
db_access
;
bool
found_libchar
;
...
...
sql/sql_lex.h
View file @
da2abaf8
...
...
@@ -210,7 +210,7 @@ class st_select_lex_node {
SELECT_LEX_UNIT - unit of selects (UNION, INTERSECT, ...) group
SELECT_LEXs
*/
class
st_lex
;
struct
st_lex
;
class
st_select_lex
;
class
THD
;
class
select_result
;
...
...
sql/sql_parse.cc
View file @
da2abaf8
...
...
@@ -1287,6 +1287,7 @@ mysql_execute_command(THD *thd)
int
res
=
0
;
LEX
*
lex
=
&
thd
->
lex
;
TABLE_LIST
*
tables
=
(
TABLE_LIST
*
)
lex
->
select_lex
.
table_list
.
first
;
TABLE_LIST
*
cursor
;
SELECT_LEX
*
select_lex
=
&
lex
->
select_lex
;
SELECT_LEX_UNIT
*
unit
=
&
lex
->
unit
;
DBUG_ENTER
(
"mysql_execute_command"
);
...
...
@@ -1343,7 +1344,7 @@ mysql_execute_command(THD *thd)
DBUG_VOID_RETURN
;
}
//check rights
for
(
TABLE_LIST
*
cursor
=
tables
;
for
(
cursor
=
tables
;
cursor
;
cursor
=
cursor
->
next
)
if
(
cursor
->
derived
)
...
...
@@ -1361,7 +1362,7 @@ mysql_execute_command(THD *thd)
}
thd
->
send_explain_fields
(
explain_result
);
// EXPLAIN derived tables
for
(
TABLE_LIST
*
cursor
=
tables
;
for
(
cursor
=
tables
;
cursor
;
cursor
=
cursor
->
next
)
if
(
cursor
->
derived
)
...
...
sql/sql_prepare.cc
View file @
da2abaf8
...
...
@@ -634,7 +634,6 @@ bool mysql_stmt_prepare(THD *thd, char *packet, uint packet_length)
{
MEM_ROOT
thd_root
=
thd
->
mem_root
;
PREP_STMT
stmt
;
bool
error
;
DBUG_ENTER
(
"mysql_stmt_prepare"
);
bzero
((
char
*
)
&
stmt
,
sizeof
(
stmt
));
...
...
sql/sql_select.cc
View file @
da2abaf8
...
...
@@ -171,7 +171,7 @@ int handle_select(THD *thd, LEX *lex, select_result *result)
result
->
abort
();
if
(
res
||
thd
->
net
.
report_error
)
{
send_error
(
thd
,
0
,
MYF
(
0
)
);
send_error
(
thd
,
0
,
NullS
);
res
=
1
;
}
delete
result
;
...
...
@@ -7176,7 +7176,6 @@ static void select_describe(JOIN *join, bool need_tmp_table, bool need_order,
bool
distinct
,
const
char
*
message
)
{
List
<
Item
>
field_list
;
Item
*
item
;
List
<
Item
>
item_list
;
THD
*
thd
=
join
->
thd
;
SELECT_LEX
*
select_lex
=
&
(
join
->
thd
->
lex
.
select_lex
);
...
...
@@ -7190,7 +7189,7 @@ static void select_describe(JOIN *join, bool need_tmp_table, bool need_order,
if
(
message
)
{
item_list
.
push_back
(
new
Item_int
((
int
)
thd
->
lex
.
select
->
select_number
));
item_list
.
push_back
(
new
Item_int
((
int
32
)
thd
->
lex
.
select
->
select_number
));
item_list
.
push_back
(
new
Item_string
(
thd
->
lex
.
select
->
type
,
strlen
(
thd
->
lex
.
select
->
type
),
default_charset_info
));
...
...
@@ -7217,7 +7216,7 @@ static void select_describe(JOIN *join, bool need_tmp_table, bool need_order,
tmp2
.
length
(
0
);
item_list
.
empty
();
item_list
.
push_back
(
new
Item_int
((
int
)
thd
->
lex
.
select
->
select_number
));
item_list
.
push_back
(
new
Item_int
((
int
32
)
thd
->
lex
.
select
->
select_number
));
item_list
.
push_back
(
new
Item_string
(
thd
->
lex
.
select
->
type
,
strlen
(
thd
->
lex
.
select
->
type
),
default_charset_info
));
...
...
sql/sql_show.cc
View file @
da2abaf8
...
...
@@ -230,7 +230,7 @@ int mysqld_show_table_types(THD *thd)
const
char
*
option_name
=
show_comp_option_name
[(
int
)
*
types
->
value
];
if
(
*
types
->
value
==
SHOW_OPTION_YES
&&
!
strcasecmp
(
default_type_name
,
types
->
type
))
!
my_strcasecmp
(
system_charset_info
,
default_type_name
,
types
->
type
))
option_name
=
"DEFAULT"
;
net_store_data
(
packet
,
option_name
);
net_store_data
(
packet
,
types
->
comment
);
...
...
@@ -1398,7 +1398,6 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
int
mysqld_show_charsets
(
THD
*
thd
,
const
char
*
wild
)
{
uint
i
;
char
buff
[
8192
];
String
packet2
(
buff
,
sizeof
(
buff
),
default_charset_info
);
List
<
Item
>
field_list
;
...
...
@@ -1425,7 +1424,7 @@ int mysqld_show_charsets(THD *thd, const char *wild)
net_store_data
(
&
packet2
,
convert
,
cs
->
name
);
net_store_data
(
&
packet2
,(
uint32
)
cs
->
number
);
net_store_data
(
&
packet2
,(
uint32
)
cs
->
strxfrm_multiply
);
net_store_data
(
&
packet2
,(
uint32
)
cs
->
mbmaxlen
?
cs
->
mbmaxlen
:
1
);
net_store_data
(
&
packet2
,(
uint32
)
(
cs
->
mbmaxlen
?
cs
->
mbmaxlen
:
1
)
);
if
(
my_net_write
(
&
thd
->
net
,
(
char
*
)
packet2
.
ptr
(),
packet2
.
length
()))
goto
err
;
...
...
sql/sql_union.cc
View file @
da2abaf8
...
...
@@ -111,7 +111,7 @@ int st_select_lex_unit::prepare(THD *thd, select_result *result)
DBUG_ENTER
(
"st_select_lex_unit::prepare"
);
this
->
thd
=
thd
;
this
->
result
=
result
;
SELECT_LEX
*
lex_select_save
=
thd
->
lex
.
select
;
SELECT_LEX
*
lex_select_save
=
thd
->
lex
.
select
,
*
sl
;
/* Global option */
if
(((
void
*
)(
global_parameters
))
==
((
void
*
)
this
))
...
...
@@ -179,7 +179,7 @@ int st_select_lex_unit::prepare(THD *thd, select_result *result)
// prepare selects
joins
.
empty
();
for
(
SELECT_LEX
*
sl
=
first_select
();
sl
;
sl
=
sl
->
next_select
())
for
(
sl
=
first_select
();
sl
;
sl
=
sl
->
next_select
())
{
JOIN
*
join
=
new
JOIN
(
thd
,
sl
->
item_list
,
sl
->
options
|
thd
->
options
|
SELECT_NO_UNLOCK
|
...
...
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