Erlang/OTP Forums

Author Message

<  Erlyweb mailing list  ~  Warning: variable 'Response' is unused

ketralnis
Posted: Thu Nov 29, 2007 6:52 am Reply with quote
User Joined: 20 Jul 2007 Posts: 151 Location: San Francisco, CA
> Great, thanks for finding it. I tweaked erlydb_psql:get_metadata to
> instead of {ok, Val} or {error, Err}, to return Val or call exit(Err).
> This should fix it. Please let me know if it works.

Works for me. Thanks for getting to it before my round tuit was
allocated Smile


> On Nov 28, 2007 9:14 AM, David King <dking@ketralnis.com> wrote:
>>
>>> In addition, I'm still getting the erlydb_psql issues:
>>>
>>> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
>>> {erlydb,gen_module_code,5},
>>> {lists,foreach,2},
>>> {erlyweb_compile,compile,2},
>>> {erl_eval,do_apply,5},
>>> {shell,exprs,6},
>>> {shell,eval_loop,3}]} **
>>
>> So I finally tracked this down. The following patch fixes it for psql
>> (but probably breaks it for mysql and mnesia):
>>
>> Index: src/erlydb/erlydb.erl
>> ===================================================================
>> --- src/erlydb/erlydb.erl (revision 210)
>> +++ src/erlydb/erlydb.erl (working copy)
>> @@ -378,7 +378,7 @@
>>
>> TablesData =
>> case gb_trees:lookup(PoolId, PoolsData) of
>> - {value, Val} ->
>> + {value, {ok,Val}} ->
>> Val;
>> _ ->
>> exit({invalid_erlydb_pool_option,
>>
>> That is, PoolId was enclosed in an {ok, PoolId} tuple in
>> gen_module_code/5. I'll have to poke around to see where it's
>> happening, but if anyone knows off of the top of their head, let me
>> know, since I probably won't get a round tuit until at least this
>> weekend.
>>
>>
>>>
>>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
View user's profile Send private message AIM Address

Display posts from previous:  

All times are GMT
Page 2 of 2
Goto page Previous  1, 2
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum