Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-subsite
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
acs-subsite
Commits
8c0a8547
Commit
8c0a8547
authored
Apr 30, 2007
by
Malte Sussdorff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Malte
parent
9b7c53b7
Pipeline
#99
failed with stages
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
493 additions
and
0 deletions
+493
-0
email-image-procs-oracle.xql
tcl/email-image-procs-oracle.xql
+50
-0
email-image-procs-postgresql.xql
tcl/email-image-procs-postgresql.xql
+54
-0
email-image-procs.tcl
tcl/email-image-procs.tcl
+323
-0
email-image-procs.xql
tcl/email-image-procs.xql
+66
-0
No files found.
tcl/email-image-procs-oracle.xql
0 → 100644
View file @
8c0a8547
<?xml version="1.0"?>
<queryset>
<rdbms><type>
oracle
</type><version>
8.1.6
</version></rdbms>
<fullquery
name=
"email_image::new_item.lob_size"
>
<querytext>
update cr_revisions
set content_length = dbms_lob.getlength(content)
where revision_id = :revision_id
</querytext>
</fullquery>
<fullquery
name=
"email_image::new_item.lob_content"
>
<querytext>
update cr_revisions
set content = empty_blob()
where revision_id = :revision_id
returning content into :1
</querytext>
</fullquery>
<fullquery
name=
"email_image::edit_email_image.lob_size"
>
<querytext>
update cr_revisions
set content_length = dbms_lob.getlength(content)
where revision_id = :revision_id
</querytext>
</fullquery>
<fullquery
name=
"email_image::edit_email_image.lob_content"
>
<querytext>
update cr_revisions
set content = empty_blob()
where revision_id = :revision_id
returning content into :1
</querytext>
</fullquery>
<fullquery
name=
"email_image::add_relation.add_relation"
>
<querytext>
begin
:1 := acs_rel.new (
rel_type => 'email_image_rel',
object_id_one => :user_id,
object_id_two => :item_id);
end;
</querytext>
</fullquery>
</queryset>
tcl/email-image-procs-postgresql.xql
0 → 100644
View file @
8c0a8547
<?xml version="1.0"?>
<queryset>
<rdbms><type>
postgresql
</type><version>
7.1
</version></rdbms>
<fullquery
name=
"email_image::new_item.lob_size"
>
<querytext>
update cr_revisions
set content_length = lob_length(lob)
where revision_id = :revision_id
</querytext>
</fullquery>
<fullquery
name=
"email_image::new_item.lob_content"
>
<querytext>
update cr_revisions
set mime_type = :mime_type,
lob = [set __lob_id [db_string get_lob_id "select empty_lob()"]]
where revision_id = :revision_id
</querytext>
</fullquery>
<fullquery
name=
"email_image::edit_email_image.lob_size"
>
<querytext>
update cr_revisions
set content_length = lob_length(lob)
where revision_id = :revision_id
</querytext>
</fullquery>
<fullquery
name=
"email_image::edit_email_image.lob_content"
>
<querytext>
update cr_revisions
set mime_type = :mime_type,
lob = [set __lob_id [db_string get_lob_id "select empty_lob()"]]
where revision_id = :revision_id
</querytext>
</fullquery>
<fullquery
name=
"email_image::add_relation.add_relation"
>
<querytext>
select acs_rel__new (
null,
'email_image_rel',
:user_id,
:item_id,
null,
null,
null
)
</querytext>
</fullquery>
</queryset>
tcl/email-image-procs.tcl
0 → 100644
View file @
8c0a8547
This diff is collapsed.
Click to expand it.
tcl/email-image-procs.xql
0 → 100644
View file @
8c0a8547
<?xml version="1.0"?>
<queryset>
<fullquery
name=
"email_image::get_email.get_email"
>
<querytext>
select email
from cc_users
where user_id = :user_id
</querytext>
</fullquery>
<fullquery
name=
"email_image::get_priv_email.get_private_email"
>
<querytext>
select priv_email
from users
where user_id = :user_id
</querytext>
</fullquery>
<fullquery
name=
"email_image::get_folder_id.check_folder_name"
>
<querytext>
select folder_id from cr_folders
where label = 'Email_Images'
</querytext>
</fullquery>
<fullquery
name=
"email_image::get_related_item_id.get_rel_item"
>
<querytext>
select object_id_two from acs_rels
where rel_type = 'email_image_rel' and object_id_one = :user_id
</querytext>
</fullquery>
<fullquery
name=
"email_image::update_private_p.update_users"
>
<querytext>
update users
set priv_email = :level
where user_id = :user_id
</querytext>
</fullquery>
<fullquery
name=
"email_image::new_item.update_cr_items"
>
<querytext>
update cr_items
set live_revision = :revision_id
where item_id = :item_id
</querytext>
</fullquery>
<fullquery
name=
"email_image::edit_email_image.update_cr_items"
>
<querytext>
update cr_items
set live_revision = :revision_id
where item_id = :item_id
</querytext>
</fullquery>
</queryset>
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