aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/db_columns.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/db_columns.rb')
-rw-r--r--lib/sisu/db_columns.rb21
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/sisu/db_columns.rb b/lib/sisu/db_columns.rb
index 5ed6e680..608b59a7 100644
--- a/lib/sisu/db_columns.rb
+++ b/lib/sisu/db_columns.rb
@@ -1886,7 +1886,7 @@ module SiSU_DbColumns
end
def tuple
if defined? @md.wc_words \
- and @md.wc_words=~/\S+/
+ and @md.wc_words.to_s=~/\S+/
txt=@md.wc_words
txt=special_character_escape(txt)
["#{name}, ","'#{txt}', "]
@@ -1957,15 +1957,16 @@ module SiSU_DbColumns
%{COMMENT ON COLUMN metadata_and_text.#{name}
IS 'metadata document links';}
end
- def tuple
- if defined? @md.links \
- and @md.links=~/\S+/
- txt=@md.links
- txt=special_character_escape(txt)
- ["#{name}, ","'#{txt}', "]
- else ['','']
- end
- end
+ #def tuple
+ # #BUG HERE - links is an array of paired values :say :url
+ # if defined? @md.links \
+ # and @md.links=~/\S+/
+ # txt=@md.links
+ # txt=special_character_escape(txt)
+ # ["#{name}, ","'#{txt}', "]
+ # else ['','']
+ # end
+ #end
self
end
self