Akopia Akopia Services

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

Re: [mv] "goup by" sql query doesnt work with minivend



******    message to minivend-users from "Christian J. =?iso-8859-1?Q?M=FCller?=" <cmueller@polinet.ch>     ******

Hi Josh,

I believe that MV translates SQL statements into MV seach statements
exept in [query ...].
"LIKE" has the same problem!
Either translate your SQl into MV (in your case add mv_sort_field or
tf=.. to the search instead of GROUP BY) or use in-page search 
[query more=1 list=1 sql=Statement]
	[list]
		[sql-code] [sql-param fieldname]
		[more-list][more][/more-list]
	[/list]
[/query]
This is unfortunately not fully documented (yet).
I dont really feel competent enough to propose an add-on to the docs,
but I may nevertheless give it a try one of these days.
Chris


josh wrote:
> 
> ******    message to minivend-users from "josh" <josh@paducahonline.com>     ******
> 
> Anyone know why this doesnt work?
> 
> http://blah/cgi-bin/cstore/search.html?st=sql&mv_matchlimit=10&mv_search_pag
> e=searchresults&mv_sql_query=SELECT+*+FROM+blah+goup+by+stock
> 
> The exact same query works in mysql. This works in minivend though:
> http://rootwurm/cgi-bin/cstore/search.html?st=sql&mv_matchlimit=10&mv_search
> _page=searchresults&mv_sql_query=SELECT+*+FROM+Airbrush
> 
> Do I need to install some other dbi or something for the "goup by" to work?
> Any help appreciated.
> 
> Josh
> 
> -
> 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: