Bugzilla – Attachment 112656 Details for
Bug 26853
Data lost due to "Data too long for column" errors during MARC import
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26853: Throw a fatal error if import_biblios insert fails
Bug-26853-Throw-a-fatal-error-if-importbiblios-ins.patch (text/plain), 929 bytes, created by
David Cook
on 2020-10-29 05:23:56 UTC
(
hide
)
Description:
Bug 26853: Throw a fatal error if import_biblios insert fails
Filename:
MIME Type:
Creator:
David Cook
Created:
2020-10-29 05:23:56 UTC
Size:
929 bytes
patch
obsolete
>From 8d1edd0fbb4a240eb462ef893e4f1106b44d26ea Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Thu, 29 Oct 2020 05:23:10 +0000 >Subject: [PATCH] Bug 26853: Throw a fatal error if import_biblios insert fails > >--- > C4/ImportBatch.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm >index 7d0d7bab5a..6c60c675a8 100644 >--- a/C4/ImportBatch.pm >+++ b/C4/ImportBatch.pm >@@ -1637,7 +1637,7 @@ sub _add_biblio_fields { > # FIXME no controlnumber, originalsource > $isbn = C4::Koha::GetNormalizedISBN($isbn); > my $sth = $dbh->prepare("INSERT INTO import_biblios (import_record_id, title, author, isbn, issn) VALUES (?, ?, ?, ?, ?)"); >- $sth->execute($import_record_id, $title, $author, $isbn, $issn); >+ $sth->execute($import_record_id, $title, $author, $isbn, $issn) or die $sth->errstr; > $sth->finish(); > > } >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26853
:
112656
|
112657
|
112658
|
112884
|
112885
|
112886
|
112888
|
112889