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
d97c9e7c
Commit
d97c9e7c
authored
Dec 17, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move all sql_type() to the same file
parent
4eeb4a12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
sql/field.cc
sql/field.cc
+10
-0
sql/field.h
sql/field.h
+1
-1
No files found.
sql/field.cc
View file @
d97c9e7c
...
...
@@ -317,6 +317,16 @@ bool Field::optimize_range(uint idx)
return
test
(
table
->
file
->
index_flags
(
idx
)
&
HA_READ_NEXT
);
}
/****************************************************************************
Functions for the Field_null
****************************************************************************/
void
Field_null
::
sql_type
(
String
&
res
)
const
{
res
.
set
(
"null"
,
4
,
system_charset_info
);
}
/****************************************************************************
Functions for the Field_decimal class
This is an number stored as a pre-space (or pre-zero) string
...
...
sql/field.h
View file @
d97c9e7c
...
...
@@ -556,7 +556,7 @@ class Field_null :public Field_str {
int
cmp
(
const
char
*
a
,
const
char
*
b
)
{
return
0
;}
void
sort_string
(
char
*
buff
,
uint
length
)
{}
uint32
pack_length
()
const
{
return
0
;
}
void
sql_type
(
String
&
str
)
const
{
str
.
set
(
"null"
,
4
,
my_thd_charset
);
}
void
sql_type
(
String
&
str
)
const
;
uint
size_of
()
const
{
return
sizeof
(
*
this
);
}
};
...
...
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