Commit 259cc315 authored by unknown's avatar unknown

Fix broken windows distribution workspace file (libmysql.dsp), which is...

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



VC++Files/libmysql/libmysql.dsp:
  Fix the broken file
parent 472020dc
...@@ -144,10 +144,6 @@ SOURCE="..\strings\ctype-latin1.c" ...@@ -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 ...@@ -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 ...@@ -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" ...@@ -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" ...@@ -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, ...@@ -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) ...@@ -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) ...@@ -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" ...@@ -145,8 +145,7 @@ rm -r -f "$BASE/share/Makefile.am"
if [ -d $BASE/SCCS ] if [ -d $BASE/SCCS ]
then then
find $BASE/ -name SCCS -print | xargs rm -r -f find $BASE/ -type d -name SCCS -printf " \"%p\"" | xargs rm -r -f
rm -r -f "$BASE/InstallShield/Script Files/SCCS"
fi fi
mkdir $BASE/Docs $BASE/extra $BASE/include mkdir $BASE/Docs $BASE/extra $BASE/include
...@@ -161,8 +160,8 @@ copy_dir_files() { ...@@ -161,8 +160,8 @@ 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 \ for i in *.c *.h *.ih *.i *.ic *.asm *.def \
README INSTALL* LICENSE README INSTALL* LICENSE
do do
if [ -f $i ] if [ -f $i ]
then then
......
...@@ -552,10 +552,8 @@ String *Item_param::query_val_str(String* str) ...@@ -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) ...@@ -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 @@ String *Item_func_spatial_collection::val_str(String *str) ...@@ -2919,7 +2919,7 @@ String *Item_func_spatial_collection::val_str(String *str)
} }
#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() ...@@ -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)))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment