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
1f997d4a
Commit
1f997d4a
authored
Dec 18, 2003
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed compiler warning
Fixed not updated test from last changeset
parent
b9d8f108
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
mysql-test/r/auto_increment.result
mysql-test/r/auto_increment.result
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+4
-3
No files found.
mysql-test/r/auto_increment.result
View file @
1f997d4a
...
...
@@ -118,7 +118,7 @@ a
1
2
drop table t1;
create table t1 (a int not null auto_increment primary key) /*!4
10
02 type=heap */;
create table t1 (a int not null auto_increment primary key) /*!4
01
02 type=heap */;
insert into t1 values (NULL);
insert into t1 values (-1);
select last_insert_id();
...
...
sql/mysqld.cc
View file @
1f997d4a
...
...
@@ -5136,9 +5136,10 @@ static void create_pid_file()
if
((
file
=
my_create
(
pidfile_name
,
0664
,
O_WRONLY
|
O_TRUNC
,
MYF
(
MY_WME
)))
>=
0
)
{
char
buff
[
21
];
sprintf
(
buff
,
"%lu
\n
"
,(
ulong
)
getpid
());
(
void
)
my_write
(
file
,
buff
,
strlen
(
buff
),
MYF
(
MY_WME
));
char
buff
[
21
],
*
end
;
end
=
int2str
((
long
)
getpid
(),
buff
,
10
);
*
end
++=
'\n'
;
(
void
)
my_write
(
file
,
(
byte
*
)
buff
,
(
uint
)
(
end
-
buff
),
MYF
(
MY_WME
));
(
void
)
my_close
(
file
,
MYF
(
0
));
}
}
...
...
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