Sure. Using Sphinx 2.0.7 and Sphinx::Search 0.28, and the following
source/index config:
source src1
{
type = mysql
sql_host = localhost
sql_user =
sql_pass =
sql_db = test
sql_port = 3306 # optional, default is 3306
sql_query = \
SELECT id, text, int_value, bigint_value, float_value FROM
test_table
sql_attr_uint = int_value
sql_attr_bigint = bigint_value
sql_attr_float = float_value
sql_query_info = SELECT * FROM test_table WHERE id=$id
}
index test1
{
source = src1
path = /var/lib/sphinx/test1
docinfo = extern
charset_type = sbcs
}
And the test script is attached. If either of the $updated_bigint or
$updated_float lines are left uncommented the script will die.
On Sun, Jun 30, 2013 at 6:52 AM, Jon Schutz via RT <
bug-Sphinx-Search@rt.cpan.org> wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=86122 >
>
> On Thu Jun 13 17:24:48 2013, Grinnz wrote:
> > Bigint attributes should be now possible to update (as well as floats
> > maybe?), however when sending a negative or non-integer value, the
> function
> > dies with the error "attribute must be numeric" and thus does not even
> > attempt the update.
>
>
> I can't reproduce this. Can you send a test case?
>
> Thanks,
>
> --
>
> Jon Schutz
>