Re: How to safetly check an SQL statement?

2002-01-09 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Jan 09, 2002 at 02:53:11PM -0500, Stan Brown wrote: > What I have in mind is doing a prepare on this statement, and checking the > return code. Does this sound like it will catch invalis statements? If so, > how do I do this safetly without ri

Re: How to safetly check an SQL statement?

2002-01-09 Thread Thomas A . Lowery
A less "Oracle" only solution is to query the table/view in question using predicate of 1 = 2 prepare and execute a statement like this: select * from view/table where 1 = 2 Now, if the view is doing A LOT of work behind the scenes, performance could be questionable. In a future releas

Re: What is Betrive?

2002-01-09 Thread Bart Lateur
On Wed, 9 Jan 2002 15:03:56 -0600, Moritz von Schweinitz wrote: >it seemed as if b-trieve was somehow capable of storing data internally >as trees or something like that, but i haven't heard anything about it >for a while, so i guess it got a bit obsolete... Then you should take a look at Berkel

RE: What is Betrive?

2002-01-09 Thread Steve Sapovits
More OT but I have to chime in ... I also used B-Trieve in the 80's. Not much as a true developer -- it was used in a system I had to maintain for a while. There was one function call, so I guess you can't get much simpler than that. Here's where I got a shock that I never verified was true:

RE: What is Betrive?

2002-01-09 Thread Mayes, Iman
A little OT, but it is actually being used in a production software package called Teleform from Cardiff software. Teleform is an OCR program which you use to create forms, OCR them from fax or scan, and then store the information in a database. BTrieve is used to store the forms themselves, whil

Re: What is Betrive?

2002-01-09 Thread Allen Campbell
On Wed, Jan 09, 2002 at 03:03:56PM -0600, Moritz von Schweinitz wrote: > my two cents: > some professor of mine who was in love with b-trees kept on talking > about b-trieve, and how terrrible (?) it was that they now belong to > pervasive or something like that. As if it's fate would be far nob

RE: What is Betrive?

2002-01-09 Thread Stewart, Clay
I did B-trieve a billion years ago, well in the late 70s anyhow. Remember about as much about it as mainframe PL/1, Fortran and Be-stop (not to be confused with B-trieve!). Still trying to reclaim memory cells where 20 years of COBOL was stored. Things like Corba, Powerbuilder, JSP, Sybase EASe

Re: FW: DBI Problem

2002-01-09 Thread Tim Bunce
Summary: Read the Changes file with each release. Tim. p.s. I know I need to also update the "Recent Changes" sectin in the pod docs in future. On Wed, Jan 09, 2002 at 12:12:37PM -0500, Rozengurtel, Daniel wrote: > Hi All. > > Please people can you respond to my previous posting? Its a prod p

Re: DBI module

2002-01-09 Thread Terrence Brannon
On Tuesday, January 8, 2002, at 09:27 PM, John Tankersley wrote: > Hello, > > My name is John Tankersley. I am seeking some help with the perl > modules. I hope I understand the dbi modules. Please correct me if I am > wrong.I am building databases using mysql. Have you considered postgresql? I

RE: What is Betrive?

2002-01-09 Thread Moritz von Schweinitz
my two cents: some professor of mine who was in love with b-trees kept on talking about b-trieve, and how terrrible (?) it was that they now belong to pervasive or something like that. it seemed as if b-trieve was somehow capable of storing data internally as trees or something like that, but i h

Re: use DBI and perlcc

2002-01-09 Thread Jim Clark
Sorry to not have answered your problem. Just trying to help. -Jim Rainer Brandt wrote: > Hi Jim, > > the subject (and the body) of the message was about "use DBI and perlcc". > It was not how to specify a dsn. > > You said: > > $dsn= 'dbi:ADO:MyDatabase'; > > $dbh = DBI->connect("$dsn", "$

RE: How to safetly check an SQL statement?

2002-01-09 Thread Fannin, David P.
Stan, I don't completely understand your application, but here is the query I'd use. SELECT COUNT(*) FROM ALL_OBJECTS O, ALL_TAB_COLUMNS C WHERE O.OWNER = 'FOO' AND OBJECT_NAME = 'BAR' AND COLUMN_NAME IN ('BLAH', 'RAH') AND OBJECT_TYPE IN ('TABLE', 'VIEW') AND O.OWNER = C.OWNER AND TABLE_NAME =

Re: What is Betrive?

2002-01-09 Thread William R. Mussatto
On Wed, 9 Jan 2002, Chris Denman wrote: > Date: Wed, 9 Jan 2002 20:05:33 - > From: Chris Denman <[EMAIL PROTECTED]> > To: Alex Pilosov <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Re: What is Betrive? > > Aha! I think that it evolved into something else, p...sql Novel owned them at one

Re: What is Betrive?

2002-01-09 Thread Michael Ragsdale
At 02:51 PM 01/09/2002, you wrote: >Has anyone heard of Betrive? > >I have had a look on Google, but there's not much on it. It's spelled Btrieve. Btrieve is now Pervasive SQL, if I recall correctly. Try http://www.pervasive.com -Mike

Re: What is Betrive?

2002-01-09 Thread Chris Denman
Aha! An agency asked me if I knew anything about Betrive, he obviosly wrote it down as he heard it! Thanks ever so much - a bit of research is now in order Chris - Original Message - From: "Alex Pilosov" <[EMAIL PROTECTED]> To: "Chris Denman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTE

Re: What is Betrive?

2002-01-09 Thread Alex Pilosov
Its b-trieve, that's why ;) On Wed, 9 Jan 2002, Chris Denman wrote: > Has anyone heard of Betrive? > > I have had a look on Google, but there's not much on it. > > Chris > > > >

What is Betrive?

2002-01-09 Thread Chris Denman
Has anyone heard of Betrive? I have had a look on Google, but there's not much on it. Chris

How to safetly check an SQL statement?

2002-01-09 Thread Stan Brown
I'm modifying a script that connects to Oracle to collect data. Previously it could only get data from a table, and now I'm adding ghe ability to get data from a view. Because of the environment it runs in, and the fact that it's configuration table driven, on the fly. I need a LOT of error check

FW: Using Sprite

2002-01-09 Thread Sterin, Ilya
This is off-topic for dbi-dev, so I am forwarding to dbi-users. If you haven't subscribed to it, do so at this time, as all responses will go there. Ilya See Jose's note below. -Original Message- From: Jose Blanco To: [EMAIL PROTECTED] Sent: 1/9/02 12:30 PM Subject: Using Sprite I am

RE: DBD::Oracle Installation problems coredumps on make test

2002-01-09 Thread Steve McClure
>> I am getting core dumps for base.t and general.t during make test, except >> when I build the makefile with the -p option. >So using -b does the same? Actually, my notes say I coredump with the -b option as well. >> Then I get 'symbol not found: ecvt'. >You could try following the "symb

RE: Stored Procedure with Oraperl

2002-01-09 Thread Van Scoyoc, James
I just managed to successfully do this myself not long ago. I'll send you more info in a bit. -Original Message- From: NYIMI Jose (BMB) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 9:13 AM To: [EMAIL PROTECTED] Subject: Stored Procedure with Oraperl Hello, Is there som

Stored Procedure with Oraperl

2002-01-09 Thread NYIMI Jose (BMB)
Hello, Is there somebody who can tell me how I can execute a Stored Procedure with Oraperl ? I know that is possible to do that with DBI but I have a constraint to keep Oraperl that I'm using now. Thanks in advance, José. DISCLAIMER "This e-mail and any attachment thereto may cont

RE: FW: DBI Problem

2002-01-09 Thread Sterin, Ilya
I guess you took the time to actually see the code. Good response. See if you can run it with those fixes before trying my suggestions. Ilya -Original Message- From: David M. Lloyd To: Rozengurtel, Daniel Cc: '[EMAIL PROTECTED]' Sent: 1/9/02 10:19 AM Subject: Re: FW: DBI Problem Looks

RE: DBI Problem

2002-01-09 Thread Sterin, Ilya
Upgrade your DBI. Looks like you are using an older version. This bug was fixed I believe. You should be able to run fine without the -w switch if you can't upgrade. Ilya -Original Message- From: Rozengurtel, Daniel To: '[EMAIL PROTECTED]' Sent: 1/9/02 10:12 AM Subject: FW: DBI Proble

Re: FW: DBI Problem

2002-01-09 Thread David M. Lloyd
Looks like you are doing at least two things wrong. (1) you are using selectall_hashref wrong; see this doc snippet: "selectall_hashref" NEW $hash_ref = $dbh->selectall_hashref($statement, $key_field); $hash_ref = $dbh->selectall_hashref($statement, $key_field, \%attr)

FW: DBI Problem

2002-01-09 Thread Rozengurtel, Daniel
Hi All. Please people can you respond to my previous posting? Its a prod problem and i would really like to get going. Thanx a lot. Danny > -Original Message- > From: Rozengurtel, Daniel > Sent: Wednesday, January 09, 2002 9:52 AM > To: '[EMAIL PROTECTED]' > Cc: Rueth, Loretta F.

RE: Another1 problem with Oracle

2002-01-09 Thread Fannin, David P.
As of Oracle 8.0.5, the DESCRIBE command was not part of the server code. It was only supported by tools such as sqlplus. I have not tried newer versions of Oracle, but I notice that DESCRIBE is not in the SQL Reference for 9i. Here is a query that should work for you: SELECT COLUMN_NAME, DATA_

Re: [PATCH DBI.xs] Problems with fetchrow_hashref not honoring original field order

2002-01-09 Thread Tim Bunce
Applied. Thanks! Tim. On Wed, Jan 09, 2002 at 03:53:33PM +0100, Kay Röpke wrote: > Hi! > > Until recently we have used DBI-1.15 in our product. After trying to > upgrade to DBI-1.20 (or anything after 1.15) our SQL select statements > broke in a curious way: > > In a lot of places we have to

RE: oracle.dll (perhaps Was: how2 install DBD:Oracle on win32 to access remote Oracle7)

2002-01-09 Thread Sterin, Ilya
I think I got it. I had the Oracle 7 libs installed, and therefore DBD::Oracle wasn't failing, while the one compiled with OCI 8 was. Sorry, I didn't even know that I had those libs on my machine. Must of installed a while back. Ilya -Original Message- From: Ballantyne.William To: Ste

[PATCH DBI.xs] Problems with fetchrow_hashref not honoring original field order

2002-01-09 Thread Kay Röpke
Hi! Until recently we have used DBI-1.15 in our product. After trying to upgrade to DBI-1.20 (or anything after 1.15) our SQL select statements broke in a curious way: In a lot of places we have to rely (for performance reasons) for something like this to succeed: select *, trim(leading '*'

DBI Problem

2002-01-09 Thread Rozengurtel, Daniel
Hello friends, I have a problem with DBI.pm module running on Sun5.8. While using selectall_hashref i get this strange error. I am 100% sure the table to select from does exist. And that the same statement works on our dev machine (which is Sun5.6) We also descovered that there is a diference in

Re: use DBI and perlcc

2002-01-09 Thread Tim Bunce
On Wed, Jan 09, 2002 at 02:46:38PM +0100, Rainer Brandt wrote: > > Tim Bunce writes: > > On Tue, Jan 08, 2002 at 07:19:09PM +0100, Rainer Brandt wrote: > [...] > > > You said: > > > "when i try execute compiled binary file i'v got > > >"'cannot locate method "connect" via class DBI'." > >

Re: use DBI and perlcc

2002-01-09 Thread Rainer Brandt
Tim Bunce writes: > On Tue, Jan 08, 2002 at 07:19:09PM +0100, Rainer Brandt wrote: [...] > > You said: > > "when i try execute compiled binary file i'v got > >"'cannot locate method "connect" via class DBI'." > > That message is talking about the "class DBI", so the DBI itself > has not be

Re: Some problem with connection

2002-01-09 Thread Uwe Voelker
> use strict; > sub Main { > $dbh = DBI->connect('dbi:Oracle:', 'john/wayne@western',''); > } > So where is the problem? When you use "use strict" you need to declare your variables or give them full names: a) leave out "use strict" (not recommended) b) my $dbh = DBI->... c) $main::dbh = DBI->

RE: oracle.dll (perhaps Was: how2 install DBD:Oracle on win32 to access remote Oracle7)

2002-01-09 Thread Ballantyne.William
Odd, the DBD::Oracle package from ActiveState did fail in my case. I installed the binaries from them on a clean system (w2kas), no install warnings. Everything went to the proper places. The Oracle.dll file was in the correct place. Try to use the DBD::Oracle and it gives the error. Install c

Re: Re: Re: Re: DBD-Oracle-1.12 missing Oracle.o, DBD_ORA_OBJ.o

2002-01-09 Thread Tim Bunce
On Wed, Jan 09, 2002 at 12:49:33PM +0100, [EMAIL PROTECTED] wrote: > I did following: > > perl Makefile.PL -nob --> same result > perl Makefile.PL -c--> same result > perl Makefile.PL -n LIBCLNTSH --> same result > perl Makefile.PL -p--> same result > > only res

Re: DBI module

2002-01-09 Thread Andy Duncan
Hi John, > I have SuSE 7.3 installed on my system. I am using mysql to create > database tables. I was using db2 for linux but they want alot of money > for their product so I am going to use mysql instead. Is my > understanding correct that you use the dbi interface to link perl > modules to my

Another1 problem with Oracle

2002-01-09 Thread Marius Keraitis
Hillow, i have a simple question: can I use SQL command DESCRIBE instead of SELECT in this case: ...connect.. my $oraSQL = qq/SELECT * FROM TABLENAME /; ...do something.. ...disconnect.. Or maybe there is another way to get table column names? Hope You undestood my problem..:) Mario.

Re: Re: Re: Re: DBD-Oracle-1.12 missing Oracle.o, DBD_ORA_OBJ.o

2002-01-09 Thread tomaskovic
I did following: perl Makefile.PL -nob --> same result perl Makefile.PL -c--> same result perl Makefile.PL -n LIBCLNTSH --> same result perl Makefile.PL -p--> same result only result of "perl Makefile.PL -l" did vary: "make" failed with: "*** Error code 1 make

DBI module

2002-01-09 Thread John Tankersley
Hello, My name is John Tankersley. I am seeking some help with the perl modules. I hope I understand the dbi modules. Please correct me if I am wrong.I am building databases using mysql. I have SuSE 7.3 installed on my system. I am using mysql to create database tables. I was using db2 for linux

RE: Having problem with dbd-oracle 1.12 ....kindly help...

2002-01-09 Thread Andy Duncan
Hi Sal, > > link -out:..\..\blib\arch\auto\Tk\X\X.dll -dll -nologo -nodefaultlib > -re > lease -libpath:"C:\perl\lib\CORE" -machine:x86 X.obj > C:\perl\lib\CORE\perl56 > .lib oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib > comdlg32.lib a > dvapi32.lib shell32.lib ole

Re: Re: Re: DBD-Oracle-1.12 missing Oracle.o, DBD_ORA_OBJ.o

2002-01-09 Thread Tim Bunce
Now follow the advice in README.help about trying various combinations of options (-b / -p etc) to Makefile.PL. Tim. On Wed, Jan 09, 2002 at 11:34:34AM +0100, [EMAIL PROTECTED] wrote: > > Your DBD::Oracle and DBI should always be built with the > > same compiler as built the perl you'll be using

Re: use DBI and perlcc

2002-01-09 Thread Tim Bunce
On Tue, Jan 08, 2002 at 07:19:09PM +0100, Rainer Brandt wrote: > > Hello, > > you asked about a problem with your Perl/DBI program when compiled > by perlcc. Unfortunately I don't know a solution, but I believe I > know a bit more about the cause. > > You said: > "when i try execute compiled

Re: use DBI and perlcc

2002-01-09 Thread Rainer Brandt
Bart, you said: > perl2exe has similar problems. The solution there is to add the line > (for this particular example): > > require DBD::ADO; > > or even: > > require DBD::ADO if 0; That's what I tried (with DBD::Sybase). It was a year ago, with Perl 5.0 patchlevel 5 subversion 3

Re: Re: Re: DBD-Oracle-1.12 missing Oracle.o, DBD_ORA_OBJ.o

2002-01-09 Thread tomaskovic
> Your DBD::Oracle and DBI should always be built with the > same compiler as built the perl you'll be using it with. All else > is doomed to heartache. > > Build yourself a new perl and start over. > > Tim. okay.. did so: installed perl5.6.1 (and before that I installed gcc2.95.3 - binary fro

Re: use DBI and perlcc

2002-01-09 Thread Bart Lateur
On Tue, 08 Jan 2002 20:53:19 -0800, Jim Clark wrote: >I use the following code in my DBI scripts: > >$dsn= 'dbi:ADO:MyDatabase'; >$dbh = DBI->connect("$dsn", "$user", "$pass") or die "Database connection not >made: $DBI::errstr"; > >Thus, the DSN string specifies the driver to use without ext

Some problem with connection

2002-01-09 Thread DAGNICOURT Sebastien - NTR ( [EMAIL PROTECTED] )
Hello, I'am new to Perl and DBI so excuse me if the question is (so) stupid. I installed the DBI and the DBD::Oracle modules. Installation and tests worked well. I try a little script to connect to database and it failed. Here is the few lines: use DBI; use strict; Main(); sub Main { $dbh =