[ https://forge.continuent.org/jira/browse/CAROB-47?page=all ]
Gilles Rayrat resolved CAROB-47:
--------------------------------
Resolution: Fixed
Fix Version: V1.0 - full version
return NULL changed to return L""
We should discuss whether to throw a "NullValueException" here in order to
prevent user from testing wasNull for each result
> error retrieving null value from a driverResultSet with getString
> -----------------------------------------------------------------
>
> Key: CAROB-47
> URL: https://forge.continuent.org/jira/browse/CAROB-47
> Project: Carob
> Type: Bug
> Components: C++ API
> Environment: Paldo linux x86
> IBM laptop R51 - 512MB memory
> Sequoia 2.4 beta - backend mysql 5.0
> Reporter: Zsolt Simon
> Assignee: Gilles Rayrat
> Priority: Minor
> Fix For: V1.0 - full version
>
>
> When executing the above specified commands, an exception is thrown:
> terminate called after throwing an instance of 'std::logic_error'
> what(): basic_string::_S_construct NULL not valid
> The code fragment where this happening:
> wstring DriverResultSet::getString(int32_t columnIndex) throw (SQLException,
> UnexpectedException)
> {
> checkRowAndColPosAndSetNullFlag(columnIndex);
> if (wasNullFlag)
> return NULL; <---- exception is thrown here
> wstring can't be initialized with NULL.
> Needs another logic for this function to signal NULL values.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://forge.continuent.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob