Hai

This morning, I build a small script to see what commit version is the 
'latest' one with a working mysql connection.
here are my findings so far:

1) commits
'41ed0439e9409dfebc1053fe16a057b7889927ae' ok (ssjs: mysql : fix a crash 
when field is NULL)
'b89de0ed149aa4a5e2b539ff516da165ba607b26' fails (port to jsapi 1.8.5)
'fa5311f90ed21f3ff538b9578a9d5d31fb5a1fb3'  ok (SSJS: add stop event)
'8f8166cd1dcb4971a9a5aec2dfbfbf3f513f8fb1' fails (merge branche ...)

I also tried to find the causes in the source code, but my C superpowers 
have deteriorated

2)I manage to get a connection entry in the mysql logs if I skip the chost, 
clogin, cpass and cdb variables (in APE_JS_NATIVE(ape_sm_mysql_constructor))
   mysac_setup(my, JS_EncodeString(cx, host), JS_EncodeString(cx, login), 
JS_EncodeString(cx, 
pass), JS_EncodeString(cx, db), 0);
   ..
  myhandle->db = xstrdup(JS_EncodeString(cx, db));

3) I believe that there are 4 parameters that should pass to the 
constructor (in static void ape_sm_define_ape(ape_sm_compiled *asc, 
JSContext *gcx, acetables *g_ape))
jsmysql = JS_InitClass(asc->cx, obj, NULL, &mysql_class, 
ape_sm_mysql_constructor, 4, NULL, NULL, NULL, apemysql_funcs_static);
    

For the time being I will use fa5311f90ed21f3ff538b9578a9d5d31fb5a1fb3 
2012-06-23 
14:01:12

That is as far as my research came, I hope that this is usefull to get a 
step closer to a working mysql connection.


Peter

On Tuesday, August 28, 2012 5:34:11 PM UTC+2, Lloyd Adler wrote:
>
> As the subject goes,
>
> I'm wondering if there's anybody here who has a working spidermonkey 
> library for APE that supports mysql without any troubles.
>
> Also what MySQL class are you using?
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to