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
3d4eb575
Commit
3d4eb575
authored
Jan 18, 2005
by
dlenev@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge of fix for bug #7884 "Able to add invalid unique index on
TIMESTAMP prefix" into 4.1 tree.
parents
8cfe7296
9e8d33ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
sql/field.h
sql/field.h
+7
-7
No files found.
sql/field.h
View file @
3d4eb575
...
@@ -1275,10 +1275,10 @@ bool test_if_int(const char *str, int length, const char *int_end,
...
@@ -1275,10 +1275,10 @@ bool test_if_int(const char *str, int length, const char *int_end,
#define FIELDFLAG_NUMBER 2
#define FIELDFLAG_NUMBER 2
#define FIELDFLAG_ZEROFILL 4
#define FIELDFLAG_ZEROFILL 4
#define FIELDFLAG_PACK 120 // Bits used for packing
#define FIELDFLAG_PACK 120 // Bits used for packing
#define FIELDFLAG_INTERVAL 256
#define FIELDFLAG_INTERVAL 256
// mangled with decimals!
#define FIELDFLAG_BITFIELD 512 // mangled with dec!
#define FIELDFLAG_BITFIELD 512 // mangled with dec
imals
!
#define FIELDFLAG_BLOB 1024 // mangled with dec!
#define FIELDFLAG_BLOB 1024 // mangled with dec
imals
!
#define FIELDFLAG_GEOM 2048
#define FIELDFLAG_GEOM 2048
// mangled with decimals!
#define FIELDFLAG_LEFT_FULLSCREEN 8192
#define FIELDFLAG_LEFT_FULLSCREEN 8192
#define FIELDFLAG_RIGHT_FULLSCREEN 16384
#define FIELDFLAG_RIGHT_FULLSCREEN 16384
...
@@ -1303,10 +1303,10 @@ bool test_if_int(const char *str, int length, const char *int_end,
...
@@ -1303,10 +1303,10 @@ bool test_if_int(const char *str, int length, const char *int_end,
#define f_decimals(x) ((uint8) (((x) >> FIELDFLAG_DEC_SHIFT) & FIELDFLAG_MAX_DEC))
#define f_decimals(x) ((uint8) (((x) >> FIELDFLAG_DEC_SHIFT) & FIELDFLAG_MAX_DEC))
#define f_is_alpha(x) (!f_is_num(x))
#define f_is_alpha(x) (!f_is_num(x))
#define f_is_binary(x) ((x) & FIELDFLAG_BINARY) // 4.0- compatibility
#define f_is_binary(x) ((x) & FIELDFLAG_BINARY) // 4.0- compatibility
#define f_is_enum(x) ((
x) &
FIELDFLAG_INTERVAL)
#define f_is_enum(x) ((
(x) & (FIELDFLAG_INTERVAL | FIELDFLAG_NUMBER)) ==
FIELDFLAG_INTERVAL)
#define f_is_bitfield(x)
((x) &
FIELDFLAG_BITFIELD)
#define f_is_bitfield(x)
(((x) & (FIELDFLAG_BITFIELD | FIELDFLAG_NUMBER)) ==
FIELDFLAG_BITFIELD)
#define f_is_blob(x) (((x) & (FIELDFLAG_BLOB | FIELDFLAG_NUMBER)) == FIELDFLAG_BLOB)
#define f_is_blob(x) (((x) & (FIELDFLAG_BLOB | FIELDFLAG_NUMBER)) == FIELDFLAG_BLOB)
#define f_is_geom(x) ((
x) &
FIELDFLAG_GEOM)
#define f_is_geom(x) ((
(x) & (FIELDFLAG_GEOM | FIELDFLAG_NUMBER)) ==
FIELDFLAG_GEOM)
#define f_is_equ(x) ((x) & (1+2+FIELDFLAG_PACK+31*256))
#define f_is_equ(x) ((x) & (1+2+FIELDFLAG_PACK+31*256))
#define f_settype(x) (((int) x) << FIELDFLAG_PACK_SHIFT)
#define f_settype(x) (((int) x) << FIELDFLAG_PACK_SHIFT)
#define f_maybe_null(x) (x & FIELDFLAG_MAYBE_NULL)
#define f_maybe_null(x) (x & FIELDFLAG_MAYBE_NULL)
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