Sorry, I copied and paste your code but I didn't modify it haaha<br><br>| cs c |<br>
cs _ DBXConnectionSettings host: 'localhost' port: '3306'
database: 'test' userName: 'root' userPassword: 'test'.<br>
c _ DBXConnection platform: DBXSqlitePlatform new settings: cs.<br>
c connect.<br>
c open.<br>
c close.<br>
c disconnect.<br><br>I changed port: 3306 to port: '3306'<br><br>Now I also see that example is wrong. If you want to use Sqlite, you should do someting like this:<br><br>BXConnectionSettings<br> host: '/home/mariano/sqlite/'<br>
port: ''<br> database: 'sodbxtest.db'<br> userName: ''<br> userPassword: ''<br><br>See DBXSqliteFacility>>createConnection <br>
for an example<br><br>'3306' is for MySQL in which case, an example would be:<br><br>DBXConnectionSettings<br> host: '127.0.0.1'<br> port: '3306'<br> database: 'sodbxtest'<br>
userName: 'sodbxtest'<br> userPassword: 'sodbxtest'<br><br><br>Cheers,<br><br>Mariano<br><br><br><br><div class="gmail_quote">On Mon, Jul 6, 2009 at 9:11 PM, Mariano Martinez Peck <span dir="ltr"><<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Chun: Hi! It is wrong the port, it must be a string. Example:<div class="im"><br><br>| cs c |<br>
cs _ DBXConnectionSettings host: 'localhost' port: 3306
database: 'test' userName: 'root' userPassword: 'test'.<br>
c _ DBXConnection platform: DBXSqlitePlatform new settings: cs.<br>
c connect.<br>
c open.<br>
c close.<br>
c disconnect.<br><br></div>In which OS are you? If windows, you must use OpenDBX 1.4.1 (not 1.4) because there was a problem fixed there with sqlite in windows.<br><br>You can see examples in subclasses of from DBXBackendFacility method createConnection. Also in the wiki: <br>
<a href="http://wiki.squeak.org/squeak/6067" target="_blank">http://wiki.squeak.org/squeak/6067</a><br><br>Tell me if it works!<br><br>Cheers,<br><br>Mariano<br><br><br><div class="gmail_quote"><div><div></div><div class="h5">
On Mon, Jul 6, 2009 at 8:51 PM, "S.J.Chun" <span dir="ltr"><<a href="mailto:chunsj@embian.com" target="_blank">chunsj@embian.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Hi,<br>
<br>
I've tested with squeak 3.10.2 with ffi and squeakdbx 1.0 but encountered following error:<br>
<br>
Cannot use integer as pointer<br>
<br>
at apiInitialize: handle backend: backend host: host port: port<br>
which seems to related with FFI.<br>
<br>
My test code is;<br>
<br>
| cs c |<br>
cs _ DBXConnectionSettings host: 'localhost' port: 3306 database: 'test' userName: 'root' userPassword: 'test'.<br>
c _ DBXConnection platform: DBXSqlitePlatform new settings: cs.<br>
c connect.<br>
c open.<br>
c close.<br>
c disconnect.<br></div></div>_______________________________________________<br>
SqueakDBX mailing list<br>
<a href="mailto:SqueakDBX@lists.squeakfoundation.org" target="_blank">SqueakDBX@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/squeakdbx</a><br>
<br></blockquote></div><br>
</blockquote></div><br>