Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
10495d2f
Commit
10495d2f
authored
Jun 29, 2016
by
Steven Murray
Browse files
OcciRset::columnText() now throws NullDbValue as appropriate
parent
9cf3c429
Changes
2
Show whitespace changes
Inline
Side-by-side
catalogue/OcciRset.cpp
View file @
10495d2f
...
...
@@ -145,7 +145,11 @@ oracle::occi::ResultSet *OcciRset::operator->() const {
std
::
string
OcciRset
::
columnText
(
const
std
::
string
&
colName
)
const
{
try
{
const
int
colIdx
=
m_colNameToIdx
.
getIdx
(
colName
);
return
m_rset
->
getString
(
colIdx
);
const
std
::
string
stringValue
=
m_rset
->
getString
(
colIdx
);
if
(
stringValue
.
empty
())
{
throw
NullDbValue
(
std
::
string
(
"Database column "
)
+
colName
+
" contains a NULL value"
);
}
return
stringValue
;
}
catch
(
exception
::
Exception
&
ne
)
{
throw
exception
::
Exception
(
std
::
string
(
__FUNCTION__
)
+
" failed for SQL statement "
+
m_stmt
.
getSql
()
+
": "
+
ne
.
getMessage
().
str
());
...
...
catalogue/RdbmsCatalogue.cpp
View file @
10495d2f
Write
Preview
Supports
Markdown
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