Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Stored procedure

Started 2 months, 2 weeks ago by deva
Hi, Can we use stored procedure for sql_query in sphinx.conf instead of MySQL query? Deva
Site: Sphinx - Free open-source SQL full-text search engine  Sphinx - Free open-source SQL full-text search engine - site profile
Forum: Common forum  Common forum - forum profile
Total authors: 3 authors
Total thread posts: 5 posts
Thread activity: no new posts during last week
Domain info for: sphinxsearch.com

Other posts in this thread:

Arantor replied 2 months, 2 weeks ago
> Hi, > > Can we use stored procedure for sql_query in sphinx.conf instead of MySQL query? If you can query the results as if it were a regular query, yes. sql_query just sends the query as-is to MySQL and expects a resultset. If that will be returned without use of any variables (since sql_query_pre doesn't work for this AFAIK) it'll work. If in doubt, try it.

deva replied 2 months, 2 weeks ago
> If in doubt, try it. I tried it using "sql_query= call sphinxindex". But indexer is raising following error. C:\sphinx\bin>indexer --all Sphinx 0.9.8.1-release (r1533) Copyright (c) 2001-2008, Andrew Aksyonoff using config file './sphinx.conf'... indexing index 'pm1'... ERROR: index 'pm1': sql_query: PROCEDURE sphinxindex can't return a result set in the given context (DSN=...

Arantor replied 2 months, 2 weeks ago
> But the stored procedure is returning data in MySQL query analyzer. Is it returning a regular result set? Try using the same connection details in a PHP script, and see if you can get any results that way.

mtougeron replied 3 weeks, 4 days ago
> ERROR: index 'pm1': sql_query: PROCEDURE sphinxindex can't return a result set in the > given context (DSN=mysql://root:***@localhost:3306/xxx). > > But the stored procedure is returning data in MySQL query analyzer. > > Any idea? > The solution mentioned in http://www.sphinxsearch.com/bugs/view.php?id=61 might solve this for you. It worked for me when I ...

 

Top contributing authors

Name
Posts
deva
2
user's latest post:
Stored procedure
Published (2009-09-22 11:53:00)
> If in doubt, try it. I tried it using "sql_query= call sphinxindex". But indexer is raising following error. C:\sphinx\bin>indexer --all Sphinx 0.9.8.1-release (r1533) Copyright (c) 2001-2008, Andrew Aksyonoff using config file './sphinx.conf'... indexing index 'pm1'... ERROR: index 'pm1': sql_query: PROCEDURE sphinxindex can't return a result set in the given context...
Arantor
2
user's latest post:
Stored procedure
Published (2009-09-22 13:49:00)
> But the stored procedure is returning data in MySQL query analyzer. Is it returning a regular result set? Try using the same connection details in a PHP script, and see if you can get any results that way.
mtougeron
1
user's latest post:
Stored procedure
Published (2009-11-11 19:00:00)
> ERROR: index 'pm1': sql_query: PROCEDURE sphinxindex can't return a result set in the > given context (DSN=mysql://root:***@localhost:3306/xxx). > > But the stored procedure is returning data in MySQL query analyzer. > > Any idea? > The solution mentioned in http://www.sphinxsearch.com/bugs/view.php?id=61 might solve this for you. It worked for me when I got this error.

Related threads on "Sphinx - Free open-source SQL full-text search engine":

Related threads on other sites:

Thread profile page for "Stored procedure" on http://sphinxsearch.com. This report page is a snippet summary view from a single thread "Stored procedure", located on the Message Board at http://sphinxsearch.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity