Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-mysqlbackend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-mysqlbackend
Commits
d90a0535
Verified
Commit
d90a0535
authored
4 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
fix retrieveEntity
parent
942f476f
No related branches found
No related tags found
1 merge request
!12
DRAFT: ENH: file system: core
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
procedures/retrieveEntity.sql
+4
-4
4 additions, 4 deletions
procedures/retrieveEntity.sql
with
4 additions
and
4 deletions
procedures/retrieveEntity.sql
+
4
−
4
View file @
d90a0535
...
@@ -84,8 +84,8 @@ retrieveEntityBody: BEGIN
...
@@ -84,8 +84,8 @@ retrieveEntityBody: BEGIN
LEAVE
retrieveEntityBody
;
LEAVE
retrieveEntityBody
;
END
IF
;
END
IF
;
SELECT
path
,
size
,
HEX
(
hash
)
SELECT
path
,
size
,
hex
(
hash
)
,
mimetype
,
fileStorage
,
storageId
INTO
FilePath
,
FileSize
,
FileHash
INTO
FilePath
,
FileSize
,
FileHash
,
FileMimetype
,
FileStorage
,
FileStorageId
FROM
archive_files
FROM
archive_files
WHERE
file_id
=
EntityID
WHERE
file_id
=
EntityID
AND
_iversion
=
IVersion
AND
_iversion
=
IVersion
...
@@ -148,8 +148,8 @@ retrieveEntityBody: BEGIN
...
@@ -148,8 +148,8 @@ retrieveEntityBody: BEGIN
END
IF
;
END
IF
;
END
IF
;
END
IF
;
SELECT
path
,
size
,
hex
(
hash
)
SELECT
path
,
size
,
hex
(
hash
)
,
mimetype
,
fileStorage
,
storageId
INTO
FilePath
,
FileSize
,
FileHash
INTO
FilePath
,
FileSize
,
FileHash
,
FileMimetype
,
FileStorage
,
FileStorageId
FROM
files
FROM
files
WHERE
file_id
=
EntityID
WHERE
file_id
=
EntityID
LIMIT
1
;
LIMIT
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment