On Wed, Jan 23, 2013 at 11:01 AM, Enlightenment SVN
<no-re...@enlightenment.org> wrote:
> Log:
> Fix postgre backend so blobs work.
>   I cant test it because i dont have postgre, so if anyone can.
>
> --- trunk/PROTO/esskyuehl/src/modules/postgresql/esql_postgresql_backend.c    
>   2013-01-23 13:00:00 UTC (rev 83169)
> +++ trunk/PROTO/esskyuehl/src/modules/postgresql/esql_postgresql_backend.c    
>   2013-01-23 13:01:02 UTC (rev 83170)
> @@ -350,7 +350,7 @@
>                  blob.memory = str;
>                  blob.size = PQgetlength(pres, row_num, i);
>                  eina_value_setup(&val, EINA_VALUE_TYPE_BLOB);
> -                eina_value_set(&val, &blob);
> +                eina_value_set(&val, blob);
>                  //WARN("Unsupported type passed with Oid %u in column '%s': 
> '%*s'!", PQftype(pres, i), cell->colname, blob.size, (char*)str);

likely here we need to duplicate str and use blob.ops =
EINA_VALUE_BLOB_OPERATIONS_MALLOC?


--
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to