mobilize-hive 1.352 → 1.353

Sign up to get free protection for your applications and to get access to all the features.
@@ -155,7 +155,7 @@ 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(";")
158
+ hql_array = hql.downcase.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
160
  if last_statement.to_s.starts_with?("select")
161
161
  #nil if no prior commands
@@ -216,7 +216,7 @@ 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(";")
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
220
  last_select_i = source_hql_array.rindex{|s| s.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(";")+";")
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Hive
3
- VERSION = "1.352"
3
+ VERSION = "1.353"
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.352'
4
+ version: '1.353'
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: 1135176985926667885
70
+ hash: -2092622920380069556
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: 1135176985926667885
79
+ hash: -2092622920380069556
80
80
  requirements: []
81
81
  rubyforge_project:
82
82
  rubygems_version: 1.8.25