Bug 14723: Use DATETIME instead DATE
Letters.t tests failed since time_queued didn't include timecode. Use DATETIME when inserting into message_queue. To test prove t/db_dependent/Letters.t Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
68ccd536f9
commit
3ced2b3a4f
1 changed files with 1 additions and 1 deletions
|
@ -965,7 +965,7 @@ sub EnqueueLetter {
|
|||
INSERT INTO message_queue
|
||||
( borrowernumber, subject, content, metadata, letter_code, message_transport_type, status, time_queued, to_address, from_address, reply_address, content_type, delivery_note )
|
||||
VALUES
|
||||
( ?, ?, ?, ?, ?, ?, ?, CAST(NOW() AS DATE), ?, ?, ?, ?, ? )
|
||||
( ?, ?, ?, ?, ?, ?, ?, CAST(NOW() AS DATETIME), ?, ?, ?, ?, ? )
|
||||
ENDSQL
|
||||
|
||||
my $sth = $dbh->prepare($statement);
|
||||
|
|
Loading…
Reference in a new issue