W
William Carpin
Okay I originally posted the following in the rails forum, which was the
wrong place to post it as I'm not using Rails (that thread just happens
to be what came up in Google). Perhaps one of you could help me
C:\Documents and Settings\Will\My
Documents\src\mm\web\cgi-bin>processBounces.rb
Connection Test Successful - Connected To The Database
Parsing Logfile Finished
Processing Bounces...
select id, bounce from sql_languages where
email='(e-mail address removed)';
c:/ruby/lib/ruby/site_ruby/1.8/DBD/Pg/Pg.rb:640:in `execute': ERROR
C42P01
Mrelation "sql_languages" does not exist Fnamespace.c L201
RRangeVa
rGetRelid (DBI:rogrammingError)
from c:/ruby/lib/ruby/site_ruby/1.8/dbi.rb:617:in `execute'
from C:/Documents and Settings/Will/My
Documents/src/mm/web/cgi-bin/proc
essBounces.rb:84:in `updateBounceCount'
from C:/Documents and Settings/Will/My
Documents/src/mm/web/cgi-bin/proc
essBounces.rb:79:in `updateBounceCount'
from C:/Documents and Settings/Will/My
Documents/src/mm/web/cgi-bin/proc
essBounces.rb:144
from C:/Documents and Settings/Will/My
Documents/src/mm/web/cgi-bin/proc
essBounces.rb:142
Roughly the same issue, but it doesn't seem to be an issue with the
serial.... any ideas?
The code is as follows:
data_sources.each do |table_name|
email_address = email_address.downcase
selectQry = "select id, bounce from "+table_name+" where
email=\'"+email_address+"\'\;"
sth = dbh.prepare(selectQry)
sth.execute
while rows = sth.fetch do
printf rows[0], rows[1],"\n"
end
end
wrong place to post it as I'm not using Rails (that thread just happens
to be what came up in Google). Perhaps one of you could help me
C:\Documents and Settings\Will\My
Documents\src\mm\web\cgi-bin>processBounces.rb
Connection Test Successful - Connected To The Database
Parsing Logfile Finished
Processing Bounces...
select id, bounce from sql_languages where
email='(e-mail address removed)';
c:/ruby/lib/ruby/site_ruby/1.8/DBD/Pg/Pg.rb:640:in `execute': ERROR
C42P01
Mrelation "sql_languages" does not exist Fnamespace.c L201
RRangeVa
rGetRelid (DBI:rogrammingError)
from c:/ruby/lib/ruby/site_ruby/1.8/dbi.rb:617:in `execute'
from C:/Documents and Settings/Will/My
Documents/src/mm/web/cgi-bin/proc
essBounces.rb:84:in `updateBounceCount'
from C:/Documents and Settings/Will/My
Documents/src/mm/web/cgi-bin/proc
essBounces.rb:79:in `updateBounceCount'
from C:/Documents and Settings/Will/My
Documents/src/mm/web/cgi-bin/proc
essBounces.rb:144
from C:/Documents and Settings/Will/My
Documents/src/mm/web/cgi-bin/proc
essBounces.rb:142
Roughly the same issue, but it doesn't seem to be an issue with the
serial.... any ideas?
The code is as follows:
data_sources.each do |table_name|
email_address = email_address.downcase
selectQry = "select id, bounce from "+table_name+" where
email=\'"+email_address+"\'\;"
sth = dbh.prepare(selectQry)
sth.execute
while rows = sth.fetch do
printf rows[0], rows[1],"\n"
end
end