Re: [Pharo-users] UFFI Problem: A call to an external function failed (FFIOpaqueObject)

2020-06-23 Thread Sven Van Caekenberghe
Hi Pierce, > On 23 Jun 2020, at 11:51, Pierce Ng wrote: > > On Mon, Jun 22, 2020 at 08:41:22AM +0200, Sven Van Caekenberghe wrote: >>> On 22 Jun 2020, at 03:47, Pierce Ng wrote: >>> Finally, there is a non FFI pure Smalltalk implementation of the MySQL >>> wire protocol that has been around a w

Re: [Pharo-users] UFFI Problem: A call to an external function failed (FFIOpaqueObject)

2020-06-23 Thread Pierce Ng
On Mon, Jun 22, 2020 at 08:41:22AM +0200, Sven Van Caekenberghe wrote: > > On 22 Jun 2020, at 03:47, Pierce Ng wrote: > > Finally, there is a non FFI pure Smalltalk implementation of the MySQL > > wire protocol that has been around a while. > > > https://github.com/pharo-rdbms/Pharo-MySQL > > H

Re: [Pharo-users] UFFI Problem: A call to an external function failed (FFIOpaqueObject)

2020-06-21 Thread Sven Van Caekenberghe
> On 22 Jun 2020, at 03:47, Pierce Ng wrote: > > Finally, there is a non FFI pure Smalltalk implementation of the MySQL > wire protocol that has been around a while. > https://github.com/pharo-rdbms/Pharo-MySQL Hmm, that is interesting, I somehow missed that. A little bit more documentatio

Re: [Pharo-users] UFFI Problem: A call to an external function failed (FFIOpaqueObject)

2020-06-21 Thread Pierce Ng
On Sun, Jun 21, 2020 at 11:27:22AM +0200, Georg Hagn wrote: > 'mariaDB://localhost:5432/sodbxtest?&user=sodbxtest&password=sodbxtest'. Hi, Firstly, 5432 is PostgreSQL. MySQL/MariaDB default port is 3306. Just a note, as mysql_init() only allocates the C level structure and doesn't connect. > FF

Re: [Pharo-users] UFFI Problem: A call to an external function failed (FFIOpaqueObject)

2020-06-21 Thread Georg Hagn
Hello Stephane, Definition from: https://mariadb.com/kb/en/mariadb-connectorc-data-structures : "The MYSQL structure represents one database connection and is used by most of MariaDB Connector/C's API functions. The MYSQL structure needs to be allocated and initialized by the mysql_init() API func

Re: [Pharo-users] UFFI Problem: A call to an external function failed (FFIOpaqueObject)

2020-06-21 Thread Stéphane Ducasse
Hello Georg This is a great news. since we need more binding. I do not really know the answer but I’m sure the guys will help you. Now just a question: what is the definition of MYSQL that you mentioned in „MYSQL * mysql_init(NULL)“ S. > On 21 Jun 2020, at 11:27, Georg Hagn wrote: >

[Pharo-users] UFFI Problem: A call to an external function failed (FFIOpaqueObject)

2020-06-21 Thread Georg Hagn
For an exercise with uFFi i am try an C-Connector for MariaDB like Garage or UBDC As in "Unified FFI Februar 12 2020" I made Helper-classes: FFILibrary subclass: #MariaDBLibC FFIOpaqueObject subclass: #MariaDBHandle MariaDBHandle >> unixModuleName [ ^ '/usr/lib/x86_64-linux-gnu/libmariadb.so'