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
b90e575d
Commit
b90e575d
authored
Jun 05, 2006
by
petr@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test failure in the team tree
parent
8638f1cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+12
-15
No files found.
storage/csv/ha_tina.cc
View file @
b90e575d
...
@@ -503,28 +503,25 @@ int tina_end(ha_panic_function type)
...
@@ -503,28 +503,25 @@ int tina_end(ha_panic_function type)
off_t
find_eoln_buff
(
Transparent_file
*
data_buff
,
off_t
begin
,
off_t
find_eoln_buff
(
Transparent_file
*
data_buff
,
off_t
begin
,
off_t
end
,
int
*
eoln_len
)
off_t
end
,
int
*
eoln_len
)
{
{
*
eoln_len
=
0
;
for
(
off_t
x
=
begin
;
x
<
end
;
x
++
)
for
(
off_t
x
=
begin
;
x
<
end
;
x
++
)
{
{
/* Unix (includes Mac OS X) */
/* Unix (includes Mac OS X) */
if
(
data_buff
->
get_value
(
x
)
==
'\n'
)
if
(
data_buff
->
get_value
(
x
)
==
'\n'
)
{
*
eoln_len
=
1
;
*
eoln_len
=
1
;
return
x
;
else
}
if
(
data_buff
->
get_value
(
x
)
==
'\r'
)
// Mac or Dos
if
(
data_buff
->
get_value
(
x
)
==
'\r'
)
// Mac or Dos
{
{
/* old Mac line ending */
/* old Mac line ending */
if
(
x
+
1
==
end
||
(
data_buff
->
get_value
(
x
+
1
)
!=
'\n'
))
if
(
x
+
1
==
end
||
(
data_buff
->
get_value
(
x
+
1
)
!=
'\n'
))
{
*
eoln_len
=
1
;
*
eoln_len
=
1
;
return
x
;
}
else
// DOS style ending
else
// DOS style ending
{
*
eoln_len
=
2
;
*
eoln_len
=
2
;
return
x
+
1
;
}
}
}
if
(
*
eoln_len
)
// end of line was found
return
x
;
}
}
return
0
;
return
0
;
...
...
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