aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4/db_import.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-06-06 21:33:36 -0400
committerRalph Amissah <ralph@amissah.com>2013-06-06 21:33:36 -0400
commit3c2a5c974750898a46faf844dc7c6dc2ad4173fd (patch)
tree2feaeadeefd6935e7b4d9a6b954b3276d4478dbe /lib/sisu/v4/db_import.rb
parentdebian/changelog (4.1.3-1) (diff)
parentv4 v5: cgi helper script, sample search form generator, file name matching (diff)
Merge tag 'sisu_4.1.4' into debian/sid
SiSU 4.1.4
Diffstat (limited to 'lib/sisu/v4/db_import.rb')
-rw-r--r--lib/sisu/v4/db_import.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v4/db_import.rb b/lib/sisu/v4/db_import.rb
index 199d4efa..a4251a98 100644
--- a/lib/sisu/v4/db_import.rb
+++ b/lib/sisu/v4/db_import.rb
@@ -129,9 +129,9 @@ module SiSU_DbImport
select_first_match=%{
SELECT metadata_and_text.tid
FROM metadata_and_text
- WHERE metadata_and_text.src_filename = '#{@opt.fns}'
+ WHERE metadata_and_text.src_filename = '#{@md.fns}'
AND metadata_and_text.language_document_char = '#{@opt.lng}'
- ;}
+ ;} # note, for .ssm: @md.fns (is set during runtime & is) != @opt.fns @md.opt.fns
file_exist=@sql_type=~/sqlite/ \
? @conn.get_first_value(select_first_match)
: @conn.select_one(select_first_match)