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
4280cdc4
Commit
4280cdc4
authored
May 24, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge rburnett@bk-internal.mysql.com:/home/bk/mysql-5.1-kt
into big_geek.:D:/work/mysql/mysql-5.1-vc71
parents
2380913d
c38308de
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
11 deletions
+26
-11
include/config-win.h
include/config-win.h
+1
-0
mysql-test/lib/mtr_misc.pl
mysql-test/lib/mtr_misc.pl
+8
-1
sql/net_serv.cc
sql/net_serv.cc
+3
-4
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+14
-6
No files found.
include/config-win.h
View file @
4280cdc4
...
@@ -25,6 +25,7 @@ functions */
...
@@ -25,6 +25,7 @@ functions */
#if defined(_MSC_VER) && _MSC_VER >= 1400
#if defined(_MSC_VER) && _MSC_VER >= 1400
/* Avoid endless warnings about sprintf() etc. being unsafe. */
/* Avoid endless warnings about sprintf() etc. being unsafe. */
#define _CRT_SECURE_NO_DEPRECATE 1
#define _CRT_SECURE_NO_DEPRECATE 1
#define _USE_32BIT_TIME_T 1
/* force time_t to be 32 bit */
#endif
#endif
#include <sys/locking.h>
#include <sys/locking.h>
...
...
mysql-test/lib/mtr_misc.pl
View file @
4280cdc4
...
@@ -107,9 +107,16 @@ sub mtr_exe_exists (@) {
...
@@ -107,9 +107,16 @@ sub mtr_exe_exists (@) {
my
@path
=
@_
;
my
@path
=
@_
;
map
{
$_
.=
"
.exe
"}
@path
if
$::glob_win32
;
map
{
$_
.=
"
.exe
"}
@path
if
$::glob_win32
;
foreach
my
$path
(
@path
)
foreach
my
$path
(
@path
)
{
if
(
$::glob_win32
)
{
return
$path
if
-
f
$path
;
}
else
{
{
return
$path
if
-
x
$path
;
return
$path
if
-
x
$path
;
}
}
}
if
(
@path
==
1
)
if
(
@path
==
1
)
{
{
mtr_error
("
Could not find
$path
[0]
");
mtr_error
("
Could not find
$path
[0]
");
...
...
sql/net_serv.cc
View file @
4280cdc4
...
@@ -37,9 +37,6 @@
...
@@ -37,9 +37,6 @@
HFTODO this must be hidden if we don't want client capabilities in
HFTODO this must be hidden if we don't want client capabilities in
embedded library
embedded library
*/
*/
#ifdef __WIN__
#include <winsock.h>
#endif
#include <my_global.h>
#include <my_global.h>
#include <mysql.h>
#include <mysql.h>
#include <mysql_embed.h>
#include <mysql_embed.h>
...
@@ -51,7 +48,9 @@
...
@@ -51,7 +48,9 @@
#include <violite.h>
#include <violite.h>
#include <signal.h>
#include <signal.h>
#include <errno.h>
#include <errno.h>
#ifdef __WIN__
#include <winsock.h>
#endif
#ifdef __NETWARE__
#ifdef __NETWARE__
#include <sys/select.h>
#include <sys/select.h>
#endif
#endif
...
...
storage/csv/ha_tina.cc
View file @
4280cdc4
...
@@ -472,13 +472,20 @@ int tina_end(ha_panic_function type)
...
@@ -472,13 +472,20 @@ int tina_end(ha_panic_function type)
/*
/*
Finds the end of a line.
Finds the end of a line.
Currently only supports files written on a UNIX OS
.
Supports DOS, Unix, or Mac OS line endings
.
*/
*/
byte
*
find_eoln
(
byte
*
data
,
off_t
begin
,
off_t
end
)
byte
*
find_eoln
(
byte
*
data
,
off_t
begin
,
off_t
end
,
int
*
eoln_len
)
{
{
off_t
dataend
=
begin
;
*
eoln_len
=
0
;
for
(
off_t
x
=
begin
;
x
<
end
;
x
++
)
for
(
off_t
x
=
begin
;
x
<
end
;
x
++
)
if
(
data
[
x
]
==
'\n'
)
if
(
data
[
x
]
==
'\r'
||
data
[
x
]
==
'\n'
)
return
data
+
x
;
(
*
eoln_len
)
++
;
else
if
(
!
(
*
eoln_len
))
dataend
++
;
else
return
data
+
dataend
;
return
0
;
return
0
;
}
}
...
@@ -627,6 +634,7 @@ int ha_tina::find_current_row(byte *buf)
...
@@ -627,6 +634,7 @@ int ha_tina::find_current_row(byte *buf)
{
{
byte
*
mapped_ptr
;
byte
*
mapped_ptr
;
byte
*
end_ptr
;
byte
*
end_ptr
;
int
eoln_len
;
DBUG_ENTER
(
"ha_tina::find_current_row"
);
DBUG_ENTER
(
"ha_tina::find_current_row"
);
mapped_ptr
=
(
byte
*
)
share
->
mapped_file
+
current_position
;
mapped_ptr
=
(
byte
*
)
share
->
mapped_file
+
current_position
;
...
@@ -636,7 +644,7 @@ int ha_tina::find_current_row(byte *buf)
...
@@ -636,7 +644,7 @@ int ha_tina::find_current_row(byte *buf)
not to conflict with undergoing concurrent insert.
not to conflict with undergoing concurrent insert.
*/
*/
if
((
end_ptr
=
find_eoln
(
share
->
mapped_file
,
current_position
,
if
((
end_ptr
=
find_eoln
(
share
->
mapped_file
,
current_position
,
local_saved_data_file_length
))
==
0
)
local_saved_data_file_length
,
&
eoln_len
))
==
0
)
DBUG_RETURN
(
HA_ERR_END_OF_FILE
);
DBUG_RETURN
(
HA_ERR_END_OF_FILE
);
for
(
Field
**
field
=
table
->
field
;
*
field
;
field
++
)
for
(
Field
**
field
=
table
->
field
;
*
field
;
field
++
)
...
@@ -684,7 +692,7 @@ int ha_tina::find_current_row(byte *buf)
...
@@ -684,7 +692,7 @@ int ha_tina::find_current_row(byte *buf)
}
}
(
*
field
)
->
store
(
buffer
.
ptr
(),
buffer
.
length
(),
system_charset_info
);
(
*
field
)
->
store
(
buffer
.
ptr
(),
buffer
.
length
(),
system_charset_info
);
}
}
next_position
=
(
end_ptr
-
share
->
mapped_file
)
+
1
;
next_position
=
(
end_ptr
-
share
->
mapped_file
)
+
eoln_len
;
/* Maybe use \N for null? */
/* Maybe use \N for null? */
memset
(
buf
,
0
,
table
->
s
->
null_bytes
);
/* We do not implement nulls! */
memset
(
buf
,
0
,
table
->
s
->
null_bytes
);
/* We do not implement nulls! */
...
...
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