Bug 20144: [sql_modes] Set default value for biblio.datecreated in tests

Fix for:
Field 'datecreated' doesn't have a default value

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-02-06 13:27:32 -03:00
parent ffae331219
commit b8f0a3fc40
1 changed files with 2 additions and 2 deletions

View File

@ -148,8 +148,8 @@ my $author3 = 'Author 3';
$query = '
INSERT INTO biblio
(title, author)
VALUES (?,?)';
(title, author, datecreated)
VALUES (?,?, NOW())';
$insert_sth = $dbh->prepare($query);
$insert_sth->execute( $title1, $author1 );
$insert_sth->execute( $title2, undef );