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
35bc91e2
Commit
35bc91e2
authored
Mar 24, 2019
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo
parent
fc1f3908
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
storage/connect/tabdos.cpp
storage/connect/tabdos.cpp
+7
-5
No files found.
storage/connect/tabdos.cpp
View file @
35bc91e2
/************* TabDos C++ Program Source Code File (.CPP) **************/
/* PROGRAM NAME: TABDOS */
/* ------------- */
/* Version 4.9.
3
*/
/* Version 4.9.
4
*/
/* */
/* COPYRIGHT: */
/* ---------- */
/* (C) Copyright to the author Olivier BERTRAND 1998-201
7
*/
/* (C) Copyright to the author Olivier BERTRAND 1998-201
9
*/
/* */
/* WHAT THIS PROGRAM DOES: */
/* ----------------------- */
...
...
@@ -2493,8 +2493,8 @@ bool DOSCOL::SetBuffer(PGLOBAL g, PVAL value, bool ok, bool check)
// Allocate the buffer used in WriteColumn for numeric columns
if
(
!
Buf
&&
IsTypeNum
(
Buf_Type
))
Buf
=
(
char
*
)
PlugSubAlloc
(
g
,
NULL
,
MY_MAX
(
32
,
Long
+
1
));
else
Buf
=
(
char
*
)
PlugSubAlloc
(
g
,
NULL
,
MY_MAX
(
64
,
Long
+
1
));
else
// Text columns do not need additional buffer
Buf
=
(
char
*
)
Value
->
GetTo_Val
();
// Because Colblk's have been made from a copy of the original TDB in
...
...
@@ -2709,7 +2709,9 @@ void DOSCOL::WriteColumn(PGLOBAL g)
htrc
(
"new length(%p)=%d
\n
"
,
Buf
,
n
);
if
((
len
=
n
)
>
field
)
{
sprintf
(
g
->
Message
,
MSG
(
VALUE_TOO_LONG
),
Buf
,
Name
,
field
);
char
*
p
=
Value
->
GetCharString
(
Buf
);
sprintf
(
g
->
Message
,
MSG
(
VALUE_TOO_LONG
),
p
,
Name
,
field
);
throw
31
;
}
else
if
(
Dsp
)
for
(
i
=
0
;
i
<
len
;
i
++
)
...
...
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