Ruby dbi & group_concat

Witam,

mam problem z wartoscia GROUP_CONCAT

Uzywajac ruby i bilioteki dbi wartosc tej funkcji jest zawsze pusta pomimo ze klient wyswietla ten string:

app1: 40.02 EUR, app2: 4.88 EUR, app3: 0.98 EUR, app4: 0.98 EUR

Czy ktos spotkal sie z podobnym problemem?

Ponizsza klasa wyswietla wszystkie wartosci, problem pojawia sie tylko kiedy uzywam funkcji GROUP_CONCAT. Wartosc takiej funkcji jest zawsze pusta.

[code]require ‘rubygems’
require ‘dbi’
require ‘odbc_utf8’

class Exasol

def self.execute_query(script)
begin
config = YAML.load_file(“config/config.yaml”)
dbh = DBI.connect(‘DBI:ODBC:EXA’, config[“login”], config[“password”])
result = []
sth = dbh.prepare(script)
sth.execute
while row = sth.fetch_array do
result.push(row)
end
col_names = sth.column_names
sth.finish
return result, col_names
rescue Exception => e
err_message = “An error occured with script”
print err_message
ensure
dbh.disconnect if dbh
end
end

end[/code]