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
7445d68d
Commit
7445d68d
authored
Jul 23, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge heikki@work.mysql.com:/home/bk/mysql
into hundin.mysql.fi:/home/heikki/mysql3
parents
8dd4327f
3c9f1a9a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
12 deletions
+18
-12
Docs/manual.texi
Docs/manual.texi
+3
-0
sql/key.cc
sql/key.cc
+1
-1
sql/table.cc
sql/table.cc
+14
-11
No files found.
Docs/manual.texi
View file @
7445d68d
...
@@ -46928,6 +46928,9 @@ not yet 100% confident in this code.
...
@@ -46928,6 +46928,9 @@ not yet 100% confident in this code.
@appendixsubsec Changes in release 3.23.52
@appendixsubsec Changes in release 3.23.52
@itemize @bullet
@itemize @bullet
@item
@item
Fixed bug with creating an auto-increment value on second part of a
@code{UNIQUE()} key where first part could contain NULL values.
@item
Don't write slave-timeout reconnects to the error log.
Don't write slave-timeout reconnects to the error log.
@item
@item
Fixed bug with slave net read timeouting
Fixed bug with slave net read timeouting
sql/key.cc
View file @
7445d68d
...
@@ -59,7 +59,7 @@ int find_ref_key(TABLE *table,Field *field, uint *key_length)
...
@@ -59,7 +59,7 @@ int find_ref_key(TABLE *table,Field *field, uint *key_length)
{
{
if
(
key_part
->
offset
==
fieldpos
)
if
(
key_part
->
offset
==
fieldpos
)
return
(
i
);
/* Use this key */
return
(
i
);
/* Use this key */
*
key_length
+=
key_part
->
length
;
*
key_length
+=
key_part
->
store_
length
;
}
}
}
}
return
(
-
1
);
/* No key is ok */
return
(
-
1
);
/* No key is ok */
...
...
sql/table.cc
View file @
7445d68d
...
@@ -346,17 +346,7 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
...
@@ -346,17 +346,7 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
}
}
}
}
if
(
reg_field
->
unireg_check
==
Field
::
NEXT_NUMBER
)
if
(
reg_field
->
unireg_check
==
Field
::
NEXT_NUMBER
)
{
outparam
->
found_next_number_field
=
reg_field
;
if
((
int
)
(
outparam
->
next_number_index
=
(
uint
)
find_ref_key
(
outparam
,
reg_field
,
&
outparam
->
next_number_key_offset
))
<
0
)
reg_field
->
unireg_check
=
Field
::
NONE
;
/* purecov: inspected */
else
{
outparam
->
found_next_number_field
=
reg_field
;
reg_field
->
flags
|=
AUTO_INCREMENT_FLAG
;
}
}
if
(
outparam
->
timestamp_field
==
reg_field
)
if
(
outparam
->
timestamp_field
==
reg_field
)
outparam
->
timestamp_field_offset
=
i
;
outparam
->
timestamp_field_offset
=
i
;
if
(
use_hash
)
if
(
use_hash
)
...
@@ -507,6 +497,19 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
...
@@ -507,6 +497,19 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
bfill
(
outparam
->
null_flags
+
outparam
->
rec_buff_length
*
2
,
null_length
,
255
);
bfill
(
outparam
->
null_flags
+
outparam
->
rec_buff_length
*
2
,
null_length
,
255
);
}
}
if
((
reg_field
=
outparam
->
found_next_number_field
))
{
if
((
int
)
(
outparam
->
next_number_index
=
(
uint
)
find_ref_key
(
outparam
,
reg_field
,
&
outparam
->
next_number_key_offset
))
<
0
)
{
reg_field
->
unireg_check
=
Field
::
NONE
;
/* purecov: inspected */
outparam
->
found_next_number_field
=
0
;
}
else
reg_field
->
flags
|=
AUTO_INCREMENT_FLAG
;
}
if
(
outparam
->
blob_fields
)
if
(
outparam
->
blob_fields
)
{
{
Field
**
ptr
;
Field
**
ptr
;
...
...
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