mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Fix broken windows distribution workspace file (libmysql.dsp), which is causing VC IDE to crash while loading
Remove ctype_latin1_de.c from respective dsp files Fix to make_win_src_distribution.sh to delete all newly added IS Bitkeeper files
This commit is contained in:
@ -144,10 +144,6 @@ SOURCE="..\strings\ctype-latin1.c"
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE="..\strings\ctype-latin1_de.c"
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE="..\strings\ctype-mb.c"
|
SOURCE="..\strings\ctype-mb.c"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@ -58,8 +58,8 @@ LINK32=link.exe
|
|||||||
# SUBTRACT LINK32 /pdb:none
|
# SUBTRACT LINK32 /pdb:none
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
SOURCE="$(InputPath)"
|
SOURCE="$(InputPath)"
|
||||||
PostBuild_Desc=Copy .lib file
|
PostBuild_Desc=Move DLL export lib
|
||||||
PostBuild_Cmds=xcopy release\libmysql.lib ..\lib_release\
|
PostBuild_Cmds=xcopy release\libmysql.lib ..\lib_release /y
|
||||||
# End Special Build Tool
|
# End Special Build Tool
|
||||||
|
|
||||||
!ELSEIF "$(CFG)" == "libmysql - Win32 Debug"
|
!ELSEIF "$(CFG)" == "libmysql - Win32 Debug"
|
||||||
@ -91,8 +91,8 @@ LINK32=link.exe
|
|||||||
# SUBTRACT LINK32 /pdb:none
|
# SUBTRACT LINK32 /pdb:none
|
||||||
# Begin Special Build Tool
|
# Begin Special Build Tool
|
||||||
SOURCE="$(InputPath)"
|
SOURCE="$(InputPath)"
|
||||||
PostBuild_Desc=Copy .lib file
|
PostBuild_Desc=Move DLL export lib
|
||||||
PostBuild_Cmds=xcopy ..\lib_debug\libmysql.dll C:\winnt\system32\ xcopy debug\libmysql.lib ..\lib_debug\
|
PostBuild_Cmds=xcopy ..\lib_debug\libmysql.dll C:\winnt\system32\ /y xcopy debug\libmysql.lib ..\lib_debug\ /y
|
||||||
# End Special Build Tool
|
# End Special Build Tool
|
||||||
|
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@ -155,10 +155,6 @@ SOURCE="..\strings\ctype-latin1.c"
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE="..\strings\ctype-latin1_de.c"
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE="..\strings\ctype-mb.c"
|
SOURCE="..\strings\ctype-mb.c"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@ -140,10 +140,6 @@ SOURCE=".\ctype-latin1.c"
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=".\ctype-latin1_de.c"
|
|
||||||
# End Source File
|
|
||||||
# Begin Source File
|
|
||||||
|
|
||||||
SOURCE=".\ctype-mb.c"
|
SOURCE=".\ctype-mb.c"
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@ -570,6 +570,7 @@ MYSQL_ROW_OFFSET STDCALL mysql_stmt_row_seek(MYSQL_STMT *stmt,
|
|||||||
MYSQL_ROW_OFFSET offset);
|
MYSQL_ROW_OFFSET offset);
|
||||||
MYSQL_ROW_OFFSET STDCALL mysql_stmt_row_tell(MYSQL_STMT *stmt);
|
MYSQL_ROW_OFFSET STDCALL mysql_stmt_row_tell(MYSQL_STMT *stmt);
|
||||||
void STDCALL mysql_stmt_data_seek(MYSQL_STMT *stmt, my_ulonglong offset);
|
void STDCALL mysql_stmt_data_seek(MYSQL_STMT *stmt, my_ulonglong offset);
|
||||||
|
my_ulonglong STDCALL mysql_stmt_num_rows(MYSQL_STMT *stmt);
|
||||||
|
|
||||||
/* status return codes */
|
/* status return codes */
|
||||||
#define MYSQL_NO_DATA 100
|
#define MYSQL_NO_DATA 100
|
||||||
|
@ -5467,11 +5467,7 @@ mysql_stmt_data_seek(MYSQL_STMT *stmt, my_ulonglong row)
|
|||||||
DBUG_ENTER("mysql_stmt_data_seek");
|
DBUG_ENTER("mysql_stmt_data_seek");
|
||||||
DBUG_PRINT("enter",("row id to seek: %ld",(long) row));
|
DBUG_PRINT("enter",("row id to seek: %ld",(long) row));
|
||||||
|
|
||||||
if (!(result= stmt->result))
|
if ((result= stmt->result))
|
||||||
{
|
|
||||||
DBUG_PRINT("exit", ("stmt doesn't contain any resultset"));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
MYSQL_ROWS *tmp= 0;
|
MYSQL_ROWS *tmp= 0;
|
||||||
if (result->data)
|
if (result->data)
|
||||||
@ -5479,6 +5475,23 @@ mysql_stmt_data_seek(MYSQL_STMT *stmt, my_ulonglong row)
|
|||||||
result->current_row= 0;
|
result->current_row= 0;
|
||||||
result->data_cursor= tmp;
|
result->data_cursor= tmp;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
DBUG_PRINT("exit", ("stmt doesn't contain any resultset"));
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Return total rows the current statement result set
|
||||||
|
*/
|
||||||
|
|
||||||
|
my_ulonglong STDCALL mysql_stmt_num_rows(MYSQL_STMT *stmt)
|
||||||
|
{
|
||||||
|
DBUG_ENTER("mysql_stmt_num_rows");
|
||||||
|
|
||||||
|
if (stmt->result)
|
||||||
|
DBUG_RETURN(stmt->result->row_count);
|
||||||
|
|
||||||
|
DBUG_PRINT("exit", ("stmt doesn't contain any resultset"));
|
||||||
|
DBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/********************************************************************
|
/********************************************************************
|
||||||
|
@ -145,8 +145,7 @@ rm -r -f "$BASE/share/Makefile.am"
|
|||||||
# Clean up if we did this from a bk tree
|
# Clean up if we did this from a bk tree
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ -d $BASE/SCCS ]
|
if [ -d $BASE/SCCS ]
|
||||||
then
|
|
||||||
then
|
then
|
||||||
find $BASE/ -type d -name SCCS -printf " \"%p\"" | xargs rm -r -f
|
find $BASE/ -type d -name SCCS -printf " \"%p\"" | xargs rm -r -f
|
||||||
fi
|
fi
|
||||||
@ -161,8 +160,8 @@ copy_dir_files() {
|
|||||||
copy_dir_files() {
|
copy_dir_files() {
|
||||||
|
|
||||||
for arg do
|
for arg do
|
||||||
print_debug "Copying files from directory '$arg'"
|
print_debug "Copying files from directory '$arg'"
|
||||||
cd $SOURCE/$arg/
|
cd $SOURCE/$arg/
|
||||||
for i in *.c *.h *.ih *.i *.ic *.asm *.def \
|
for i in *.c *.h *.ih *.i *.ic *.asm *.def \
|
||||||
README INSTALL* LICENSE
|
README INSTALL* LICENSE
|
||||||
do
|
do
|
||||||
|
@ -552,10 +552,8 @@ String *Item_param::query_val_str(String* str)
|
|||||||
{
|
{
|
||||||
switch (item_result_type) {
|
switch (item_result_type) {
|
||||||
case INT_RESULT:
|
case INT_RESULT:
|
||||||
str->set(int_value, default_charset());
|
|
||||||
break;
|
|
||||||
case REAL_RESULT:
|
case REAL_RESULT:
|
||||||
set->set(real_value, 2, default_charset());
|
return val_str(str);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
str->set("'", 1, default_charset());
|
str->set("'", 1, default_charset());
|
||||||
@ -599,13 +597,13 @@ String *Item_param::query_val_str(String* str)
|
|||||||
case TIMESTAMP_FULL:
|
case TIMESTAMP_FULL:
|
||||||
sprintf(buff, "%04d-%02d-%02d %02d:%02d:%02d",
|
sprintf(buff, "%04d-%02d-%02d %02d:%02d:%02d",
|
||||||
ltime.year,ltime.month,ltime.day,
|
ltime.year,ltime.month,ltime.day,
|
||||||
ltime.hour,ltime.minute,ltime.second));
|
ltime.hour,ltime.minute,ltime.second);
|
||||||
str->append(buff, 19);
|
str->append(buff, 19);
|
||||||
break;
|
break;
|
||||||
case TIMESTAMP_TIME:
|
case TIMESTAMP_TIME:
|
||||||
{
|
{
|
||||||
sprintf(buff, "%02d:%02d:%02d",
|
sprintf(buff, "%02d:%02d:%02d",
|
||||||
ltime.hour,ltime.minute,ltime.second));
|
ltime.hour,ltime.minute,ltime.second);
|
||||||
str->append(buff, 8);
|
str->append(buff, 8);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2919,7 +2919,7 @@ ret:
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_COMPRESS
|
#ifdef HAVE_COMPRESS
|
||||||
#include <zlib.h>
|
#include "../zlib/zlib.h"
|
||||||
|
|
||||||
String *Item_func_compress::val_str(String *str)
|
String *Item_func_compress::val_str(String *str)
|
||||||
{
|
{
|
||||||
|
@ -283,7 +283,6 @@ void field_str::add()
|
|||||||
char buff[MAX_FIELD_WIDTH], *ptr;
|
char buff[MAX_FIELD_WIDTH], *ptr;
|
||||||
String s(buff, sizeof(buff),&my_charset_bin), *res;
|
String s(buff, sizeof(buff),&my_charset_bin), *res;
|
||||||
ulong length;
|
ulong length;
|
||||||
TREE_ELEMENT *element;
|
|
||||||
|
|
||||||
if (!(res = item->val_str(&s)))
|
if (!(res = item->val_str(&s)))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user