help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Problem glpk using mysql, error "string literal too long".


From: Marcello Henrique
Subject: [Help-glpk] Problem glpk using mysql, error "string literal too long".
Date: Fri, 2 Oct 2009 14:32:21 -0300

Hello,

I have problem with glpk debian package in Lenny in discusses with
help-glpk list, I receive sugestions to change constant in
src/glpmpl.h file to MAX_LENGTH 1000 according as email following
down.

Is possible include into the next package?
Attachment patch, in version 4.39.

Thanks by attention.

---------- Forwarded message ----------
From: Yaron Kretchmer <address@hidden>
Date: Thu, Oct 1, 2009 at 15:24
Subject: Re: [Help-glpk] Problem glpk using mysql, error "string
literal too long".
To: Marcello Henrique <address@hidden>


Yes, you should download source code and recompile.

Good luck!

yaron


On Thu, Oct 1, 2009 at 11:22 AM, Marcello Henrique <address@hidden> wrote:
> I use compiled package in debian lenny  repository is necessary
> download source code, change then and compile again?
> You might say what should I change?
>
> Thank by advices!
>
> On Thu, Oct 1, 2009 at 15:13, Yaron Kretchmer <address@hidden> wrote:
>> in the glpk source code (one of the .h files- I forget which one),
>> there is a constant which defines that max. string length. Change it
>> to something big (1000), and you should be good to go.
>>
>> Cheers
>> Yaron
>>
>>
>> On Thu, Oct 1, 2009 at 10:23 AM, Marcello Henrique <address@hidden> wrote:
>>> Hello all,
>>>
>>> I use glpk over Debian Lenny "GLPSOL: GLPK LP/MIP Solver 4.38", I have
>>> error message "nurse.mod:35: string literal too long" my line 35 this
>>> file nurse.mod is:
>>>
>>> table days_shifts_cost_work IN "MySQL" ...
>>> 'SELECT day,shift,days_shifts.cost,days_shifts.work FROM days_shifts
>>> INNER JOIN days ON days_shifts.day_id=days.id INNER JOIN shifts ON
>>> days_shifts.shift_id=shifts.id' : [ shift,day ], Cal_cost~cost,
>>> Cal_work~work;
>>>
>>>
>>> Anybody help me?
>>>
>>> --
>>> Marcello Henrique
>>> Associação Software Livre de Goiás (www.aslgo.org.br)
>>> Cercomp - UFG (www.cercomp.ufg.br)
>>> _______________________________________________
>>> Help-glpk mailing list
>>> address@hidden
>>> http://lists.gnu.org/mailman/listinfo/help-glpk
>>>
> --
> Marcello Henrique
> Associação Software Livre de Goiás (www.aslgo.org.br)
> Cercomp - UFG (www.cercomp.ufg.br)
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk


-- 
Marcello Henrique
Associação Software Livre de Goiás (www.aslgo.org.br)
Cercomp - UFG (www.cercomp.ufg.br)

Attachment: patch-max-length.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]