Skip Menu |

This queue is for tickets about the OODoc CPAN distribution.

Report information
The Basics
Id: 90801
Status: rejected
Priority: 0/
Queue: OODoc

People
Owner: Nobody in particular
Requestors: serg_56 [...] mail.ru
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: proposal to change the function code renameTable
Hello! RenameTable function comprises checking the existence of the table with the proposed new name. To check the function is called getTable. This conflicts with the new table names of the form 0, 1, 2, etc. Propose to use to test the function getTableByName. Existing code function renameTable. sub renameTable { my $self = shift; my $table = $self->getTable(shift) or return undef; my $newname = shift; if ($self->getTable($newname, $self->{'xpath'})) { warn "[" . __PACKAGE__ . "::renameTable] " . "Table name $newname already in use\n"; return undef; } return $self->setAttribute($table, 'table:name' => $newname); } Proposed code function renameTable. sub renameTable { my $self = shift; my $table = $self->getTable(shift) or return undef; my $newname = shift; if ($self->getTableByName($newname, $self->{'xpath'})) { warn "[" . __PACKAGE__ . "::renameTable] " . "Table name $newname already in use\n"; return undef; } return $self->setAttribute($table, 'table:name' => $newname); }
Subject: Re: [rt.cpan.org #90801] proposal to change the function code renameTable
Date: Mon, 25 Nov 2013 16:19:41 +0100
To: Sergey Volkov via RT <bug-OODoc [...] rt.cpan.org>
From: Mark Overmeer <secretaris [...] nluug.nl>
* Sergey Volkov via RT (bug-OODoc@rt.cpan.org) [131125 15:15]: Show quoted text
> Mon Nov 25 10:15:28 2013: Request 90801 was acted upon. > Transaction: Ticket created by serg_56 > Queue: OODoc > Subject: proposal to change the function code renameTable > Requestors: serg_56@mail.ru > > RenameTable function comprises checking > the existence of the table with the proposed new name.
This bug-report is in the wrong queue. You need OpenOffice::OODoc, not OODoc. (The names are confusing, my module is older) -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
wrong distrubution