Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
5c90b7dc
Commit
5c90b7dc
authored
Dec 06, 2011
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 657290: Bug.add_attachment() stores truncated timestamps in the DB (seconds are missing)
r=dkl a=mkanat
parent
d9649490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Bug.pm
Bugzilla/WebService/Bug.pm
+4
-1
No files found.
Bugzilla/WebService/Bug.pm
View file @
5c90b7dc
...
...
@@ -631,9 +631,12 @@ sub add_attachment {
my
@created
;
$dbh
->
bz_start_transaction
();
my
$timestamp
=
$dbh
->
selectrow_array
(
'SELECT LOCALTIMESTAMP(0)'
);
foreach
my
$bug
(
@bugs
)
{
my
$attachment
=
Bugzilla::
Attachment
->
create
({
bug
=>
$bug
,
creation_ts
=>
$timestamp
,
data
=>
$params
->
{
data
},
description
=>
$params
->
{
summary
},
filename
=>
$params
->
{
file_name
},
...
...
@@ -648,7 +651,7 @@ sub add_attachment {
extra_data
=>
$attachment
->
id
});
push
(
@created
,
$attachment
);
}
$_
->
bug
->
update
(
$
_
->
attached
)
foreach
@created
;
$_
->
bug
->
update
(
$
timestamp
)
foreach
@created
;
$dbh
->
bz_commit_transaction
();
$_
->
send_changes
()
foreach
@bugs
;
...
...
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