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
c6fd683e
Commit
c6fd683e
authored
Sep 18, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the recently introduced ulint bit-fields to unsigned.
parent
f39237e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
include/dict0mem.h
include/dict0mem.h
+6
-6
No files found.
include/dict0mem.h
View file @
c6fd683e
...
...
@@ -171,14 +171,14 @@ UTF-8 charset. In that charset, a character may take at most 3 bytes. */
struct
dict_field_struct
{
dict_col_t
*
col
;
/* pointer to the table column */
const
char
*
name
;
/* name of the column */
u
lint
prefix_len
:
10
;
/* 0 or the length of the column
u
nsigned
prefix_len
:
10
;
/* 0 or the length of the column
prefix in bytes in a MySQL index of
type, e.g., INDEX (textcol(25));
must be smaller than
DICT_MAX_INDEX_COL_LEN; NOTE that
in the UTF-8 charset, MySQL sets this
to 3 * the prefix len in UTF-8 chars */
u
lint
fixed_len
:
10
;
/* 0 or the fixed length of the
u
nsigned
fixed_len
:
10
;
/* 0 or the fixed length of the
column if smaller than
DICT_MAX_INDEX_COL_LEN */
};
...
...
@@ -241,13 +241,13 @@ struct dict_foreign_struct{
this memory heap */
char
*
id
;
/* id of the constraint as a
null-terminated string */
u
lint
n_fields
:
10
;
/* number of indexes' first fields
u
nsigned
n_fields
:
10
;
/* number of indexes' first fields
for which the the foreign key
constraint is defined: we allow the
indexes to contain more fields than
mentioned in the constraint, as long
as the first fields are as mentioned */
u
lint
type
:
6
;
/* 0 or DICT_FOREIGN_ON_DELETE_CASCADE
u
nsigned
type
:
6
;
/* 0 or DICT_FOREIGN_ON_DELETE_CASCADE
or DICT_FOREIGN_ON_DELETE_SET_NULL */
char
*
foreign_table_name
;
/* foreign table name */
dict_table_t
*
foreign_table
;
/* table where the foreign key is */
...
...
@@ -309,8 +309,8 @@ struct dict_table_struct{
unsigned
cached
:
1
;
/* TRUE if the table object has been added
to the dictionary cache */
unsigned
flags
:
8
;
/* DICT_TF_COMPACT, ... */
u
lint
n_def
:
10
;
/* number of columns defined so far */
u
lint
n_cols
:
10
;
/* number of columns */
u
nsigned
n_def
:
10
;
/* number of columns defined so far */
u
nsigned
n_cols
:
10
;
/* number of columns */
dict_col_t
*
cols
;
/* array of column descriptions */
hash_node_t
name_hash
;
/* hash chain node */
hash_node_t
id_hash
;
/* hash chain node */
...
...
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