This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Arel | |
module Visitors | |
class Oracle < Arel::Visitors::ToSql | |
private | |
def visit_Array o | |
if o.empty? | |
'NULL' | |
else | |
listtype = o[0].to_s =~ /\D/ ? 'odcivarchar2list': 'odcinumberlist' | |
quoted_chunks = o.in_groups_of(999, false).map do |chunk| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
module Round | |
end | |
class Fruit | |
end | |
module NotRound | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'socket' | |
hostname = ARGV[0] | |
port = ARGV[1] | |
filename = ARGV[2] | |
begin | |
socket = TCPSocket.new( hostname, port ) | |
socket.send( "zINSTREAM\0", 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'socket' | |
hostname = ARGV[0] | |
control_port = ARGV[1] | |
filename = ARGV[2] | |
begin | |
control_socket = TCPSocket.new( hostname, control_port ) | |
control_socket.send( "STREAM\n", 0) |