error with postgreSql.

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/5/2008 1:06:02 PM
Gravatar
Total Posts 550

error with postgreSql.

Hi Joe

I get latest verion(8.3) of postgreSql and install that on windows 2003.I create a new datadase and run run mojoportal with mojoPortal.Data.pgsql but the follwing error apears :

File system permissions ok.
pgsql database connection ok.
database permissions are sufficient to alter schema.
database initial schema needs to be created.
Running script mojoportal-core - 2.2.3.4 - 00:00:06.7343750
Npgsql.NpgsqlException: operator does not exist: integer = character varying Severity: ERROR Code: 42883 Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. at Npgsql.NpgsqlConnector.CheckErrors() in C:\Users\JoeAudette\devprojects\mojoportal\joesandbox2\npgsql1-0\Npgsql\NpgsqlConnector.cs:line 359 at Npgsql.NpgsqlCommand.ExecuteCommand() in C:\Users\JoeAudette\devprojects\mojoportal\joesandbox2\npgsql1-0\Npgsql\NpgsqlCommand.cs:line 1479 at Npgsql.NpgsqlCommand.ExecuteNonQuery() in C:\Users\JoeAudette\devprojects\mojoportal\joesandbox2\npgsql1-0\Npgsql\NpgsqlCommand.cs:line 460 at mojoPortal.Data.NpgsqlHelper.ExecuteNonQuery(NpgsqlTransaction transaction, CommandType commandType, String commandText, NpgsqlParameter[] commandParameters) in E:\MyProjects\Portals\SamarPortal\mojoPortal.Data.pgsql\NpgsqlHelper.cs:line 426 at mojoPortal.Data.NpgsqlHelper.ExecuteNonQuery(NpgsqlTransaction transaction, CommandType commandType, String commandText) in E:\MyProjects\Portals\SamarPortal\mojoPortal.Data.pgsql\NpgsqlHelper.cs:line 399 at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(String script, String overrideConnectionInfo) in E:\MyProjects\Portals\SamarPortal\mojoPortal.Data.pgsql\dbPortal.cs:line 739 at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(FileInfo scriptFile, String overrideConnectionInfo) in E:\MyProjects\Portals\SamarPortal\mojoPortal.Data.pgsql\dbPortal.cs:line 701 at mojoPortal.Business.DatabaseHelper.RunScript(Guid applicationId, FileInfo scriptFile, String overrideConnectionInfo) in E:\MyProjects\Portals\SamarPortal\mojoPortal.Business\DatabaseHelper.cs:line 313 - 00:03:14.6250000
Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config.

 

thanks for your helps.

 

 

2/5/2008 2:45:43 PM
Gravatar
Total Posts 18439

Re: error with postgreSql.

I think you need to install the plpgsql language. look in the mojoPortal.Data.pgsql folder and run the script plpgsql.sql on your database

Hope it helps,

Joe

2/13/2008 10:35:19 AM
Gravatar
Total Posts 6

Re: error with postgreSql.

I have the same problem. The language is installed but I have the same error.

Executing the script step by step (folder lagacysql) I have noticed that the error

occur into the script StoredProcedure, and start at the

function  mp_sitepersonalizationperuser_countbyuserpathsince  .... and all

the script were roolbacked.

 

All the function scripts that I execute before this function are ok.

Where is the problem?????

 

Thanks

2/14/2008 3:41:11 AM
Gravatar
Total Posts 6

Re: error with postgreSql.

Other Info.

I'm using a PostgreSQP bundle made by EntepriseDB.com.

I have Windows 2003 installed and 8.3.0.1 Postgresql.

It's perhaps a problem linked with this bundle? Or not?

Thanks in advance

2/15/2008 10:50:55 AM
Gravatar
Total Posts 6

Re: error with postgreSql.

We have discover an error in core script and in all updating sql scripts.

The error is linked to the use of field   "mp_users.userid"   in some function.

This filed is an INTEGER FIELD ... but in some function this field was compared with

a VARCHAR variable .... And this generate the "CAST  bla bla bla ...." error.

 We have patch these scripts ... casting in this manner

    cast(mp_users.userid as VARCHAR) = $1

where $1 was a VARCHAR(36) variable

It's correct?   but it's possible to have the correct script?

 

Thanks

2/17/2008 9:39:41 AM
Gravatar
Total Posts 18439

Re: error with postgreSql.

Hi,

Sorry for the delay in response but I was on vacation all week.

You should not use the legacy scripts and you should not run any scripts manually except maybe the plpgsql.sql script which installs the pl/pgSQL language. The legacy scripts only exist for upgrading very old mojoportal installations. I thought I had a readme file in there telling this but I see its not there and will add it.

If you create your db and you have the pl/pgSQL language installed, all you need to do is set your connection string and visit siteroot/Setup/Default.aspx and it will run all the needed scripts automatically.

I have only used postgresql on linux myself so I can't answer whether there are any windows version issues.

If you think there is a problem with a script, you are going to have to be more specific and tell me which script and which part of the script you think is not right. It works fine for me. If you are getting some error about casting you need to tell me exactly the error and where it occurs.

Hope it helps,

Joe

2/18/2008 10:10:45 AM
Gravatar
Total Posts 18439

Re: error with postgreSql.

Hi,

I've emailed you a replacement script. Please let me know if it solves the problem.

Thanks,

Joe

2/19/2008 7:51:23 AM
Gravatar
Total Posts 6

Re: error with postgreSql.

Ok Joe, now all the script setup are OK!.

Thanks for help.

Wiz

2/20/2008 10:38:03 AM
Gravatar
Total Posts 550

Re: error with postgreSql.

Hi Joe

Please send this script to me too.

Thanks for help.

2/20/2008 11:10:36 AM
Gravatar
Total Posts 18439

Re: error with postgreSql.

Hi A.Samarian,

If you're using svn trunk, just do svn update. The corrected scripts are in svn.

Best Regards,

Joe

You must sign in to post in the forums. This thread is closed to new posts.