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:
parent
ffae331219
commit
b8f0a3fc40
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in New Issue