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
c22b4907
Commit
c22b4907
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
964b8f63
Changes
2
Show 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 @
c22b4907
...
@@ -317,6 +317,16 @@ bool Field::optimize_range(uint idx)
...
@@ -317,6 +317,16 @@ bool Field::optimize_range(uint idx)
return
test
(
table
->
file
->
index_flags
(
idx
)
&
HA_READ_NEXT
);
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
Functions for the Field_decimal class
This is an number stored as a pre-space (or pre-zero) string
This is an number stored as a pre-space (or pre-zero) string
...
...
sql/field.h
View file @
c22b4907
...
@@ -556,7 +556,7 @@ public:
...
@@ -556,7 +556,7 @@ public:
int
cmp
(
const
char
*
a
,
const
char
*
b
)
{
return
0
;}
int
cmp
(
const
char
*
a
,
const
char
*
b
)
{
return
0
;}
void
sort_string
(
char
*
buff
,
uint
length
)
{}
void
sort_string
(
char
*
buff
,
uint
length
)
{}
uint32
pack_length
()
const
{
return
0
;
}
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
);
}
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