appoxy-aws 1.11.27 → 1.11.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sdb/right_sdb_interface.rb +5 -2
 - metadata +1 -1
 
| 
         @@ -206,12 +206,15 @@ module RightAws 
     | 
|
| 
       206 
206 
     | 
    
         
             
                #
         
     | 
| 
       207 
207 
     | 
    
         
             
                def query_expression_from_array(params) #:nodoc:
         
     | 
| 
       208 
208 
     | 
    
         
             
                  return '' if params.blank?
         
     | 
| 
       209 
     | 
    
         
            -
                  query = params. 
     | 
| 
      
 209 
     | 
    
         
            +
                  query = params[0].to_s
         
     | 
| 
      
 210 
     | 
    
         
            +
                  i = 1
         
     | 
| 
       210 
211 
     | 
    
         
             
                  query.gsub(/(\\)?(\?)/) do
         
     | 
| 
       211 
212 
     | 
    
         
             
                    if $1 # if escaped '\?' is found - replace it by '?' without backslash
         
     | 
| 
       212 
213 
     | 
    
         
             
                      "?"
         
     | 
| 
       213 
214 
     | 
    
         
             
                    else  # well, if no backslash precedes '?' then replace it by next param from the list
         
     | 
| 
       214 
     | 
    
         
            -
                      escape(params 
     | 
| 
      
 215 
     | 
    
         
            +
                      ret = escape(params[i])
         
     | 
| 
      
 216 
     | 
    
         
            +
                        i+=1
         
     | 
| 
      
 217 
     | 
    
         
            +
                        ret
         
     | 
| 
       215 
218 
     | 
    
         
             
                    end
         
     | 
| 
       216 
219 
     | 
    
         
             
                  end
         
     | 
| 
       217 
220 
     | 
    
         
             
                end
         
     |