Bugzilla – Attachment 101332 Details for
Bug 24883
Add `misc/load_yaml.pl` utility script to allow manual loading of yaml data files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24883: Add POD entry and remove unused variable
Bug-24883-Add-POD-entry-and-remove-unused-variable.patch (text/plain), 1.86 KB, created by
Bernardo Gonzalez Kriegel
on 2020-03-21 12:11:11 UTC
(
hide
)
Description:
Bug 24883: Add POD entry and remove unused variable
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2020-03-21 12:11:11 UTC
Size:
1.86 KB
patch
obsolete
>From 88e38f0b51355514d9ba27b7410edcf5660ff398 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Fri, 20 Mar 2020 19:35:29 -0300 >Subject: [PATCH] Bug 24883: Add POD entry and remove unused variable > >https://bugs.koha-community.org/show_bug.cgi?id=24833 >--- > C4/Installer.pm | 23 ++++++++++++++++------- > misc/load_yaml.pl | 2 +- > 2 files changed, 17 insertions(+), 8 deletions(-) > >diff --git a/C4/Installer.pm b/C4/Installer.pm >index 06231d93b0..5b61b89b11 100644 >--- a/C4/Installer.pm >+++ b/C4/Installer.pm >@@ -447,15 +447,12 @@ sub set_version_syspref { > C4::Context->clear_syspref_cache(); > } > >-=head2 load_sql >- >- my $error = $installer->load_sql($filename); >+=head2 process_yml_table > >-Runs the specified input file using a sql loader DBIx::RunSQL, or a yaml loader >-Returns any strings sent to STDERR >+ my $query_info = $installer->process_yml_table($table); > >-# FIXME This should be improved: sometimes the caller and load_sql warn the same >-error. >+Analyzes a table loaded in YAML format. >+Returns the values required to build an insert statement. > > =cut > >@@ -480,6 +477,18 @@ sub process_yml_table { > return { query => $query, placeholders => $placeholders, values => \@values }; > } > >+=head2 load_sql >+ >+ my $error = $installer->load_sql($filename); >+ >+Runs the specified input file using a sql loader DBIx::RunSQL, or a yaml loader >+Returns any strings sent to STDERR >+ >+# FIXME This should be improved: sometimes the caller and load_sql warn the same >+error. >+ >+=cut >+ > sub load_sql { > my $self = shift; > my $filename = shift; >diff --git a/misc/load_yaml.pl b/misc/load_yaml.pl >index b12d88d886..118c394e13 100755 >--- a/misc/load_yaml.pl >+++ b/misc/load_yaml.pl >@@ -41,7 +41,7 @@ USAGE > } > > # Getting parameters >-my ( @files, $dump, $load, $help ); >+my ( @files, $load, $help ); > > GetOptions( > 'help|h' => \$help, >-- >2.17.1
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 24883
:
100831
|
101009
|
101010
|
101011
|
101012
|
101013
|
101292
|
101293
|
101294
|
101332
|
101333
|
101901
|
101902
|
101903
|
101904
|
101905
|
101950
|
101951
|
101952
|
101953
|
101954