mobilize-hive 1.353 → 1.354

Sign up to get free protection for your applications and to get access to all the features.
@@ -155,9 +155,9 @@ module Mobilize
155
155
  Gdrive.unslot_worker_by_path(stage_path)
156
156
 
157
157
  #check for select at end
158
- hql_array = hql.downcase.split("\n").reject{|l| l.starts_with?("--") or l.strip.length==0}.join("\n").split(";").map{|h| h.strip}
158
+ hql_array = hql.split("\n").reject{|l| l.starts_with?("--") or l.strip.length==0}.join("\n").split(";").map{|h| h.strip}
159
159
  last_statement = hql_array.last
160
- if last_statement.to_s.starts_with?("select")
160
+ if last_statement.to_s.downcase.starts_with?("select")
161
161
  #nil if no prior commands
162
162
  prior_hql = hql_array[0..-2].join(";") if hql_array.length > 1
163
163
  select_hql = hql_array.last
@@ -216,8 +216,8 @@ module Mobilize
216
216
 
217
217
  #decomment hql
218
218
 
219
- source_hql_array = source_hql.downcase.split("\n").reject{|l| l.starts_with?("--") or l.strip.length==0}.join("\n").split(";").map{|h| h.strip}
220
- last_select_i = source_hql_array.rindex{|s| s.starts_with?("select")}
219
+ source_hql_array = source_hql.split("\n").reject{|l| l.starts_with?("--") or l.strip.length==0}.join("\n").split(";").map{|h| h.strip}
220
+ last_select_i = source_hql_array.rindex{|s| s.downcase.starts_with?("select")}
221
221
  #find the last select query -- it should be used for the temp table creation
222
222
  last_select_hql = (source_hql_array[last_select_i..-1].join(";")+";")
223
223
  #if there is anything prior to the last select, add it in prior to table creation
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Hive
3
- VERSION = "1.353"
3
+ VERSION = "1.354"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobilize-hive
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.353'
4
+ version: '1.354'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -67,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  segments:
69
69
  - 0
70
- hash: -2092622920380069556
70
+ hash: 1895779262763226675
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  segments:
78
78
  - 0
79
- hash: -2092622920380069556
79
+ hash: 1895779262763226675
80
80
  requirements: []
81
81
  rubyforge_project:
82
82
  rubygems_version: 1.8.25