Re: dbd::informix with no test db

2005-10-24 Thread Jonathan Leffler
On 10/24/05, Matthew Lenz <[EMAIL PROTECTED]> wrote: > > for the search engines. > > I did find that DBD::Informix 2005.2 does not play well with Debian > Sarge's 1.46-6 dbi package. I had to install DBI 1.48 to get it > (DBD::Informix 2005.2) to compile. > > On Fri, 2005-10-21 at 13:49 -0500, Matt

ANNOUNCE: MySQL 5.0 now final/stable/GA

2005-10-24 Thread Darren Duncan
For those of you that use MySQL, this should be welcome news, that version 5.0.x is now officially stable, at 5.0.15. Speaking just personally, the recommended minimum versions of certain database products to use with my upcoming rewritten database access modules are the following; they are

RE: Newline inserted?

2005-10-24 Thread Ronald J Kimball
Matthew Dougerty [mailto:[EMAIL PROTECTED] wrote: > > I'm assuming that those characters are part of the text. I assume the > last > text field is: > 'H4vgmf+OJsT99kCfQuIpALY7k9k=')<*>;' > > This way the SQL statement ends like: > 'H4vgmf+OJsT99kCfQuIpALY7k9k=')<*>;') > > The interpreter does

RE: Newline inserted?

2005-10-24 Thread Matthew Dougerty
I'm assuming that those characters are part of the text. I assume the last text field is: 'H4vgmf+OJsT99kCfQuIpALY7k9k=')<*>;' This way the SQL statement ends like: 'H4vgmf+OJsT99kCfQuIpALY7k9k=')<*>;') The interpreter doesn't know which ') to stop at. matt. On Mon, 24 Oct 2005 16:59:17 -040

RE: Newline inserted?

2005-10-24 Thread Ronald J Kimball
The problem, as a couple people have already pointed out, is the semicolon. (There is no problem with newlines or single quotes here.) The semicolon after a statement is SQL*PLUS syntax. It is not valid in DBD::Oracle. Ronald > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMA

RE: Newline inserted?

2005-10-24 Thread Ward.P.Fontenot
Syslog-ng is writing those sql insert statements for us, we just pick them up, make a sha1, base64 encode that and then sign it with a digital certificate and insert the whole thing into Oracle. -Original Message- From: Chris Sarnowski [mailto:[EMAIL PROTECTED] Sent: Monday, October 24,

Re: Newline inserted?

2005-10-24 Thread Matthew Dougerty
You seem to have a single quote in the text. You might want to use $dbh->quote($_) instead of qq. Matt Dougherty On Mon, 24 Oct 2005 13:01:14 -0500, Ward.P.Fontenot wrote > I have the following sql insert statement in a file: > > INSERT INTO message(FULLDATE,HOSTNAME,FACILITY,PRIORITY,MESSAGE,

Re: Newline inserted?

2005-10-24 Thread Chris Sarnowski
Paul, It seems you must have some program or script that converts the syslog info into a SQL statement. I'd recommend moving this processing into your DBI script, i.e. $insert_statement = $dbh->prepare( q/INSERT INTO message (FULLDATE,HOSTNAME,FACILITY,PRIORITY,MESSAGE,SHA1) VALUES(?, ?, ?, ?, ?

Re[3]: Set connection to read only and back to writable?

2005-10-24 Thread Wieland Pusch
Hello, when rereading my own mail, I must correct. This sets only the current transaction into read only and not the connection. And it fails if the current transaction was already writing. Tuesday, October 18, 2005, 4:59:12 PM, I wrote: WP> Tuesday, October 18, 2005, 2:18:56 PM, you wrote: TB>>

RE: Newline inserted?

2005-10-24 Thread Ward.P.Fontenot
This runs as a CRON job loading syslog data into Oracle so SQL*Plus is not a good answer. Thanks for help though. -Original Message- From: Reidy, Ron [mailto:[EMAIL PROTECTED] Sent: Monday, October 24, 2005 11:08 AM To: Fontenot, Ward P.; dbi-users@perl.org Subject: RE: Newline inserted?

RE: Newline inserted?

2005-10-24 Thread Reidy, Ron
If your file has a '\n' in it, it cannot possibly be an issue with DBI or Oracle v anything. Are you processing individual SQL statements (does your file contain SQL insert statements)? If so, DBI is not your best bet to do this. I would rethink this and: a. Use SQL*Plus to load the file: sqlp

RE: Newline inserted?

2005-10-24 Thread Ted Behling
I think you need to remove the semicolon at the end of the line. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Monday, October 24, 2005 2:01 PM > To: dbi-users@perl.org > Subject: Newline inserted? > > > I have the following sql insert statement in a

Newline inserted?

2005-10-24 Thread Ward.P.Fontenot
I have the following sql insert statement in a file: INSERT INTO message(FULLDATE,HOSTNAME,FACILITY,PRIORITY,MESSAGE,SHA1) VALUES('2005-Oct-18 11:53:21','pkitest.wellsfargo.com','auth ','info','su(pam_unix)[3638]: session opened for user oracle by root(uid=0)','H4vgmf+OJsT99kCfQuIpALY7k9k='); Whe

Re: dbd::informix with no test db

2005-10-24 Thread Matthew Lenz
for the search engines. I did find that DBD::Informix 2005.2 does not play well with Debian Sarge's 1.46-6 dbi package. I had to install DBI 1.48 to get it (DBD::Informix 2005.2) to compile. On Fri, 2005-10-21 at 13:49 -0500, Matthew Lenz wrote: > never mind, found the setting. DBD_INFORMIX_NO_E