Hello
I'm trying to connect to a PostgreSQL database with a Web App and i get
a NilObjectException in the first line i show here (This is MacOSX 10.9,
in debug mode):
// Where is PostgreSQL's Library
Session.DBConnection.SetFileOption
Session.DBConnection.kOptionLibraryPostgreSQL,
GetFolderItem(library,FolderItem.PathTypeShell) <<< NilOE HERE
Session.DBConnection.Connect(server, userID, password,
SQLConnectionMBS.kPostgreSQLClient)
library is an String that contains "/Library/PostgreSQL/9.3/lib/libpq.dylib"
DBConnection is a Session property (DBConnection as SQLConnectionMBS)
(Almost) the same code run without problems in a terminal App (This has
no problem, library is the same, DBConnection is a SQLConnectionMBS in a
module):
DBConnection.SetFileOption DBConnection.kOptionLibraryPostgreSQL,
GetFolderItem(library,FolderItem.PathTypeShell)
DBConnection.Connect(server, userID, password,
SQLConnectionMBS.kPostgreSQLClient)
Is there any consideration about this in Web App that i'm missing (this
is my first tryings with Web Apps). I've searched the Xojo Forums for
FolderItems and Web, but no luck.
Thanks!
Best.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info