Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-forum
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-forum
Commits
20dd2319
Commit
20dd2319
authored
Dec 03, 2009
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added im_forum_topic__name
parent
290e8ce1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
intranet-forum-create.sql
sql/postgresql/intranet-forum-create.sql
+19
-1
No files found.
sql/postgresql/intranet-forum-create.sql
View file @
20dd2319
...
...
@@ -33,7 +33,7 @@ SELECT acs_object_type__create_type (
'intranet-forum'
,
-- package_name
'f'
,
-- abstract_p
null
,
-- type_extension_table
'im_forum_topic
.
name'
-- name_method
'im_forum_topic
__
name'
-- name_method
);
...
...
@@ -104,6 +104,24 @@ create table im_forum_topics (
create
index
im_forum_topics_object_idx
on
im_forum_topics
(
object_id
);
create
or
replace
function
im_forum_topic__name
(
integer
)
returns
varchar
as
'
DECLARE
p_topic_id alias for $1;
v_name varchar;
BEGIN
select substring(topic_name for 30)
into v_name
from im_forum_topics
where topic_id = p_topic_id;
return v_name;
end;'
language
'plpgsql'
;
-- This is the sortkey code
--
create
function
im_forum_topic_insert_tr
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment