[Koha-bugs] [Bug 21281] Label Template - Creation not working

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 7 13:04:16 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21281

Michal Denar <black23 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |black23 at gmail.com

--- Comment #10 from Michal Denar <black23 at gmail.com> ---
Hi,
If I did folow tets plan, I get erroe after first patch:

not ok 334 - get_batch_summary() raises warning if something went wrong with
the sql request execution

#   Failed test 'get_batch_summary() raises warning if something went wrong
with the sql request execution'
#   at t/db_dependent/Creators/Lib.t line 766.
# found warning: DBD::mysql::st execute failed: Unknown column 'count(batch_id)
as _item_count' in 'field list' [for Statement "SELECT `batch_id`,
`count(batch_id) as _item_count` FROM creator_batches GROUP BY batch_id"] at
/home/vagrant/kohaclone/C4/Creators/Lib.pm line 286.
# found warning: Database returned the following error on attempted SELECT:
something went wrong at /home/vagrant/kohaclone/C4/Creators/Lib.pm line 288.
# expected to find warning: Database returned the following error on attempted
SELECT: something went wrong
ok 335 - $batches return -1
DBD::mysql::st execute failed: Unknown column 'count(batch_id) as _item_count'
in 'field list' [for Statement "SELECT `batch_id`, `count(batch_id) as
_item_count` FROM creator_batches WHERE 1  AND creator = ?  GROUP BY batch_id"
with ParamValues: 0='Labels'] at /home/vagrant/kohaclone/C4/Creators/Lib.pm
line 286.
Database returned the following error on attempted SELECT: Unknown column
'count(batch_id) as _item_count' in 'field list' at
/home/vagrant/kohaclone/C4/Creators/Lib.pm line 288.
ok 336 - There are 2 batches
Can't use string ("-1") as an ARRAY ref while "strict refs" in use at
t/db_dependent/Creators/Lib.t line 785.
# Looks like your test exited with 255 just after 336.
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 310/645 subtests

Test Summary Report
-------------------
t/db_dependent/Creators/Lib.t (Wstat: 65280 Tests: 336 Failed: 1)
  Failed test:  334
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 645 tests but ran 336.
Files=1, Tests=336,  2 wallclock secs ( 0.13 usr  0.04 sys +  1.82 cusr  0.13
csys =  2.12 CPU)
Result: FAIL



If I did apply both patch together, first test was without errors.

I'm new in testing, maybe I did some mistake.

Mike

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list