SVN Checkou

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
6/6/2005 9:24:20 AM
Gravatar
Total Posts 49
Juliano Morais Barbosa

Re: SVN Checkout

I checkout SVN source, I receive error when I compile

C:\Downloads\cvs\trunk\Web\Admin\FriendlyUrlManager.ascx.cs(157): The type or namespace name 'FriendlyUrl' could not be found (are you missing a using directive or an assembly reference?)

6/6/2005 1:39:30 PM
Gravatar
Total Posts 18439

Re: SVN Checkou

oops, I forgot to check in 1 file, its in there now.

Thanks for letting me know.
6/13/2005 6:48:42 AM
Gravatar
Total Posts 49
Juliano Morais Barbosa

Re: SVN Checkout

ERROR: 42883: function mp_friendlyurls_selectbyhost("unknown") does not exist

In postgresql scripts do not reference about this SP.
6/13/2005 2:23:44 PM
Gravatar
Total Posts 18439

Re: SVN Checkou

That procedure is in the script in svn.
3mojoPortal.PostgreSQL.CreateStoredProcedures.sql

I just searched my copy and it is there and my copy is not different than the version currently in svn.

re-run that script on your db to create the missing procedure(s).

select drop_type('mp_friendlyurls_selectbyhost_type');
CREATE TYPE public.mp_friendlyurls_selectbyhost_type as (
    urlid int4,
    siteid int4,
    friendlyurl varchar(255),
    realurl varchar(255),
    ispattern bool
);

create or replace function mp_friendlyurls_selectbyhost(
    varchar(255) --:hostname $1
) returns setof mp_friendlyurls_selectbyhost_type
as '

select
        urlid,
        siteid,
        friendlyurl,
        realurl,
        ispattern
from
        mp_friendlyurls
where   siteid = coalesce(    (select siteid from mp_sitehosts where hostname = $1 limit 1),
                 (select siteid from mp_sites order by siteid limit 1)
            ) ;'   
security definer language sql;
grant execute on function mp_friendlyurls_selectbyhost(
    varchar(255) --:hostname $1
) to public;


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