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
11c336b8
Commit
11c336b8
authored
Mar 12, 2008
by
kaa@kaamos.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge
ssh://bk-internal.mysql.com//home/bk/mysql-5.1-opt
into kaamos.(none):/data/src/opt/mysql-5.1-opt
parents
28b4988e
3d87b263
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
+29
-3
sql/sql_show.cc
sql/sql_show.cc
+5
-3
sql/table.h
sql/table.h
+24
-0
No files found.
sql/sql_show.cc
View file @
11c336b8
...
...
@@ -5384,8 +5384,9 @@ ST_SCHEMA_TABLE *get_schema_table(enum enum_schema_tables schema_table_idx)
@param
thd thread handler
@param
schema_table pointer to 'shema_tables' element
@param table_list Used to pass I_S table information(fields info, tables
parameters etc) and table name.
@retval \# Pointer to created table
@retval NULL Can't create table
...
...
@@ -5436,6 +5437,7 @@ TABLE *create_schema_table(THD *thd, TABLE_LIST *table_list)
DBUG_RETURN
(
NULL
);
break
;
case
MYSQL_TYPE_DECIMAL
:
case
MYSQL_TYPE_NEWDECIMAL
:
if
(
!
(
item
=
new
Item_decimal
((
longlong
)
fields_info
->
value
,
false
)))
{
DBUG_RETURN
(
0
);
...
...
@@ -5785,7 +5787,7 @@ int make_schema_select(THD *thd, SELECT_LEX *sel,
{
ST_SCHEMA_TABLE
*
schema_table
=
get_schema_table
(
schema_table_idx
);
LEX_STRING
db
,
table
;
DBUG_ENTER
(
"m
ysql
_schema_select"
);
DBUG_ENTER
(
"m
ake
_schema_select"
);
DBUG_PRINT
(
"enter"
,
(
"mysql_schema_select: %s"
,
schema_table
->
table_name
));
/*
We have to make non const db_name & table_name
...
...
sql/table.h
View file @
11c336b8
...
...
@@ -759,12 +759,36 @@ enum enum_schema_tables
typedef
struct
st_field_info
{
/**
This is used as column name.
*/
const
char
*
field_name
;
/**
For string-type columns, this is the maximum number of
characters. Otherwise, it is the 'display-length' for the column.
*/
uint
field_length
;
/**
This denotes data type for the column. For the most part, there seems to
be one entry in the enum for each SQL data type, although there seem to
be a number of additional entries in the enum.
*/
enum
enum_field_types
field_type
;
int
value
;
/**
This is used to set column attributes. By default, columns are @c NOT
@c NULL and @c SIGNED, and you can deviate from the default
by setting the appopriate flags. You can use either one of the flags
@c MY_I_S_MAYBE_NULL and @cMY_I_S_UNSIGNED or
combine them using the bitwise or operator @c |. Both flags are
defined in table.h.
*/
uint
field_flags
;
// Field atributes(maybe_null, signed, unsigned etc.)
const
char
*
old_name
;
/**
This should be one of @c SKIP_OPEN_TABLE,
@c OPEN_FRM_ONLY or @c OPEN_FULL_TABLE.
*/
uint
open_method
;
}
ST_FIELD_INFO
;
...
...
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