logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Anyone using PostgreSQL

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
Snotface



Joined: 24 Apr 2005
Posts: 5

PostPosted: Sun Apr 24, 2005 13:28    Post subject: Anyone using PostgreSQL Reply with quote

Hi,
i am currently using PostgreSQL, but there seems to be a problem with the RCO.
The normal pwdata table is storing and retrieving the testval in aps_demo fine.
The SCO is saving the campaign object fine (or it seems that way) to pwobjdata, but the retrieve is not working.
I get 0 records back, even though the records are in the database.
Anyone got a solution?
Apparently there is a difference between the Blob on most sql DBs and PostgreSQL's bytea. Do i need to do anything in-code around this or does the PostgreSQL ODBC drive take care of the translation?

Using NWNX_ODBC2_0924.

Thanks
Snotty.
Back to top
View user's profile Send private message
DarkstarsDad



Joined: 17 Jan 2005
Posts: 59
Location: Overland Park, Kansas USA

PostPosted: Sun Apr 24, 2005 14:30    Post subject: here redils wrote this Reply with quote

try this
redils wrote:
I wrote a patch for using PostgreSQL Database instead of MySQL. It's available on the vault.
Here the link : http://nwvault.ign.com/Files/other/data/1103224637000.shtml

_________________
Just because you think you can't. Is the best reason to try it anyway.
Back to top
View user's profile Send private message
Snotface



Joined: 24 Apr 2005
Posts: 5

PostPosted: Sun Apr 24, 2005 18:32    Post subject: Reply with quote

Thanks. Downloaded it, but i forgot to mention i'm on Win32.
I've installed the 4.1.11 of MySQL instead and that seems to be running fine.
Thanks for the help anyway.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Mon Apr 25, 2005 8:03    Post subject: Reply with quote

Hmm, the PostgreSQL's ODBC driver should take care of this, there is probably nothing we can do about it (and especially not without a snippet from the odbc log file Smile).
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Snotface



Joined: 24 Apr 2005
Posts: 5

PostPosted: Mon Apr 25, 2005 20:52    Post subject: Reply with quote

Hi Papillon,

the ODBC log file wasn't really showing anything, just the normal attach, hook and then disconnect.
In the demo app, retrieving the string was fine, but the blob just kept retrieving 0 records. The SQL statement that was being sent was fine if displayed in the server window, or cut and pasted into a query window, but it kept failing the ValidObject test.
Anyway, MySQL is doing the trick.

I really hope we'll be able to use this, or somehting very close, when NWN2 gets released.

Cheers
Snotty
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group