Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
fae69c1b
Commit
fae69c1b
authored
5 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[rdbms] Implements VARBINARY (blob) type for MySQL
parent
252b28c1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
catalogue/CMakeLists.txt
+1
-1
1 addition, 1 deletion
catalogue/CMakeLists.txt
rdbms/wrapper/MysqlRset.cpp
+2
-2
2 additions, 2 deletions
rdbms/wrapper/MysqlRset.cpp
rdbms/wrapper/MysqlStmt.cpp
+5
-1
5 additions, 1 deletion
rdbms/wrapper/MysqlStmt.cpp
with
8 additions
and
4 deletions
catalogue/CMakeLists.txt
+
1
−
1
View file @
fae69c1b
...
...
@@ -97,7 +97,7 @@ add_custom_command (OUTPUT sqlite_catalogue_schema.sql mysql_catalogue_schema.sq
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql_catalogue_schema_header.sql
${
CMAKE_CURRENT_SOURCE_DIR
}
/common_catalogue_schema.sql
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql_catalogue_schema_trailer.sql
| sed 's/CHECKSUM_BLOB_TYPE/
RAW
BINARY\
(
200\
)
/g'
| sed 's/CHECKSUM_BLOB_TYPE/
VAR
BINARY\
(
200\
)
/g'
> mysql_catalogue_schema.sql
COMMAND cat
${
CMAKE_CURRENT_SOURCE_DIR
}
/oracle_catalogue_schema_header.sql
...
...
This diff is collapsed.
Click to expand it.
rdbms/wrapper/MysqlRset.cpp
+
2
−
2
View file @
fae69c1b
...
...
@@ -79,7 +79,6 @@ bool MysqlRset::next() {
}
return
true
;
// throw exception::Exception(std::string(__FUNCTION__) + " not implemented.");
}
//------------------------------------------------------------------------------
...
...
@@ -97,7 +96,8 @@ bool MysqlRset::columnIsNull(const std::string &colName) const {
}
std
::
string
MysqlRset
::
columnBlob
(
const
std
::
string
&
colName
)
const
{
throw
exception
::
Exception
(
"MysqlRset::columnBlob not implemented."
);
auto
blob
=
columnOptionalString
(
colName
);
return
blob
?
*
blob
:
std
::
string
();
}
//------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
rdbms/wrapper/MysqlStmt.cpp
+
5
−
1
View file @
fae69c1b
...
...
@@ -261,7 +261,11 @@ void MysqlStmt::bindOptionalDouble(const std::string ¶mName, const optional<
}
void
MysqlStmt
::
bindBlob
(
const
std
::
string
&
paramName
,
const
std
::
string
&
paramValue
)
{
throw
exception
::
Exception
(
"MysqlStmt::bindBlob not implemented."
);
try
{
bindOptionalString
(
paramName
,
paramValue
);
}
catch
(
exception
::
Exception
&
ex
)
{
throw
exception
::
Exception
(
std
::
string
(
__FUNCTION__
)
+
" failed: "
+
ex
.
getMessage
().
str
());
}
}
//------------------------------------------------------------------------------
...
...
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