Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
activerecord-monetdb-adapter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
simcaq
activerecord-monetdb-adapter
Commits
fa4f6883
Commit
fa4f6883
authored
Jul 26, 2011
by
Martin Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed commented out code
parent
48029ff3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
59 deletions
+0
-59
lib/MonetDBData.rb
lib/MonetDBData.rb
+0
-59
No files found.
lib/MonetDBData.rb
View file @
fa4f6883
...
...
@@ -247,49 +247,6 @@ class MonetDBData
end
end
# Parses the data returned by the server and stores the content of header and record set
# for a Q_TABLE query in two (immutable) arrays. The Q_TABLE instance is then reperesented
# by the OpenStruct variable @Q_TABLE_instance with separate fields for 'header' and 'record_set'.
#
#def parse_tuples(record_set)
# processed_record_set = Array.new
# record_set.split("]\n").each do |row|
# remove trailing and ending "[ ]"
# row = row.gsub(/^\[\s+/,'')
# row = row.gsub(/\t\]\n$/,'')
# row = row.split(/\t/)
# processed_row = Array.new
# index the field position
# position = 0
# while position < row.length
# field = row[position].gsub(/,$/, '')
# if @type_cast == true
# if @header["columns_type"] != nil
# name = @header["columns_name"][position]
# if @header["columns_type"][name] != nil
# type = @header["columns_type"].fetch(name)
# end
# field = self.type_cast(field, type)
# field = type_cast(field, type)
# end
# end
# processed_row << field.gsub(/\\/, '').gsub(/^"/,'').gsub(/"$/,'').gsub(/\"/, '')
# position += 1
# end
# processed_record_set << processed_row
# end
# return processed_record_set
#end
# parse one tuple as returned from the server
def
parse_tuple
(
tuple
)
fields
=
Array
.
new
...
...
@@ -376,22 +333,6 @@ class String
end
def
getString
#data = self.reverse
# parse the string starting from the end;
#escape = false
#position = 0
#for i in data
# if i == '\\' and escape == true
# if data[position+1] == '\\'
# data[position+1] = ''
# escape = true
# else
# escape = false
# end
# end
# position += 1
#end
#data.reverse
self
.
gsub
(
/^"/
,'').g
su
b
(
/"$/
,'')
en
d
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment