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
31560c44
Commit
31560c44
authored
Mar 19, 2014
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- FIX MDEV-5890 and MDEV-5900
modified: storage/connect/filamtxt.cpp storage/connect/ha_connect.cc
parent
db77e643
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
storage/connect/filamtxt.cpp
storage/connect/filamtxt.cpp
+3
-1
storage/connect/ha_connect.cc
storage/connect/ha_connect.cc
+13
-7
No files found.
storage/connect/filamtxt.cpp
View file @
31560c44
...
@@ -948,7 +948,9 @@ void DOSFAM::CloseTableFile(PGLOBAL g)
...
@@ -948,7 +948,9 @@ void DOSFAM::CloseTableFile(PGLOBAL g)
/***********************************************************************/
/***********************************************************************/
void
DOSFAM
::
Rewind
(
void
)
void
DOSFAM
::
Rewind
(
void
)
{
{
rewind
(
Stream
);
if
(
Stream
)
// Can be NULL when making index on void table
rewind
(
Stream
);
Rows
=
0
;
Rows
=
0
;
OldBlk
=
CurBlk
=
-
1
;
OldBlk
=
CurBlk
=
-
1
;
}
// end of Rewind
}
// end of Rewind
...
...
storage/connect/ha_connect.cc
View file @
31560c44
...
@@ -4555,15 +4555,23 @@ int ha_connect::create(const char *name, TABLE *table_arg,
...
@@ -4555,15 +4555,23 @@ int ha_connect::create(const char *name, TABLE *table_arg,
case
MYSQL_TYPE_DATETIME
:
case
MYSQL_TYPE_DATETIME
:
case
MYSQL_TYPE_YEAR
:
case
MYSQL_TYPE_YEAR
:
case
MYSQL_TYPE_NEWDATE
:
case
MYSQL_TYPE_NEWDATE
:
case
MYSQL_TYPE_VARCHAR
:
case
MYSQL_TYPE_LONGLONG
:
case
MYSQL_TYPE_LONGLONG
:
case
MYSQL_TYPE_TINY
:
case
MYSQL_TYPE_TINY
:
break
;
// Ok
case
MYSQL_TYPE_VAR_STRING
:
case
MYSQL_TYPE_STRING
:
case
MYSQL_TYPE_DECIMAL
:
case
MYSQL_TYPE_DECIMAL
:
case
MYSQL_TYPE_NEWDECIMAL
:
case
MYSQL_TYPE_NEWDECIMAL
:
case
MYSQL_TYPE_INT24
:
case
MYSQL_TYPE_INT24
:
break
;
// Ok
case
MYSQL_TYPE_VARCHAR
:
case
MYSQL_TYPE_VAR_STRING
:
case
MYSQL_TYPE_STRING
:
if
(
!
fp
->
field_length
)
{
sprintf
(
g
->
Message
,
"Unsupported 0 length for column %s"
,
fp
->
field_name
);
rc
=
HA_ERR_INTERNAL_ERROR
;
my_printf_error
(
ER_UNKNOWN_ERROR
,
g
->
Message
,
MYF
(
0
));
DBUG_RETURN
(
rc
);
}
// endif fp
break
;
// To be checked
break
;
// To be checked
case
MYSQL_TYPE_BIT
:
case
MYSQL_TYPE_BIT
:
case
MYSQL_TYPE_NULL
:
case
MYSQL_TYPE_NULL
:
...
@@ -4579,9 +4587,7 @@ int ha_connect::create(const char *name, TABLE *table_arg,
...
@@ -4579,9 +4587,7 @@ int ha_connect::create(const char *name, TABLE *table_arg,
sprintf
(
g
->
Message
,
"Unsupported type for column %s"
,
sprintf
(
g
->
Message
,
"Unsupported type for column %s"
,
fp
->
field_name
);
fp
->
field_name
);
rc
=
HA_ERR_INTERNAL_ERROR
;
rc
=
HA_ERR_INTERNAL_ERROR
;
my_printf_error
(
ER_UNKNOWN_ERROR
,
my_printf_error
(
ER_UNKNOWN_ERROR
,
g
->
Message
,
MYF
(
0
));
"Unsupported type for column '%s'"
,
MYF
(
0
),
fp
->
field_name
);
DBUG_RETURN
(
rc
);
DBUG_RETURN
(
rc
);
break
;
break
;
}
// endswitch type
}
// endswitch type
...
...
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