Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Saratoga Support : DBI methods



******    message to minivend-users from Nick Pleis <npleis@saratogaweb.com>     ******

Ya, I figured that out just about 2 seconds after I sent you the e-mail.

I now have
AllowGlobal findpart
set in minivend.cfg

However, that still doesn't work.  The minivend server starts with no 
problems.

The code looks like this:

[perl global=1 tables="products"]
	my $dbh = $SQL{products} or return "Not shared";
	return "made it";
[/perl]

Ok, with this I would expect one of two things to happen. Either I can't 
get the reference and "Not shared" would be returned, or I would get the 
reference and "made it" would be returned. Suprisingly enough...neither 
is returned. I assummed it was some sort of syntax error, keeping the 
code block from being executed in the first place. However, I can't find 
a error statement in any error log...

What do you think?

Nick

On Sun, 26 Mar 2000 03:11:01 Mike Heins wrote:
> ******    message to minivend-users from Mike Heins <mikeh@minivend.com>     
******
> 
> Quoting Nick Pleis (npleis@saratogaweb.com):
> > 
> > Hey,
> > 
> > I was looking through the docs trying to figure out how to get access 
> > (on my own) to the perl DBI methods.
> > 
> > I think it goes something like
> > 
> > [perl global=1 tables="products"]
> > 	my $dbh = $SQL{products}
> > 		or return "Is database Shared?";
> > 	my $sth = $dbh->prepare(); ...etc..etc...(standard DBI stuff)
> > [/perl]
> > 
> > However, no matter WHAT table name I use..or what table I open...I can 
> > not get this tag to work.
> > 
> > I have set the :
> > 
> > AllowGlobal 1
> > 
> > in the minivend.cfg, and upon restart I encountered no problems. Is 
> > there something i'm missing?
> 
> Yes, reading the AllowGlobal documentation. 8-) You have just allowed
> a catalog named "1" to have global access.
> 
> Otherwise, it should work. Some things may even work with only Safe::Hole
> installed and no AllowGlobal, though I have not tested much of that.
> 
> -- 
> Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH  45056
> phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>
> 
> Light travels faster than sound. This is why some people appear bright
> until you hear them speak. -- unknown
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to 
Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list



-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: