Return reference instead of pointer where allocated data will not be owned by
the caller
----------------------------------------------------------------------------------------
Key: CAROB-80
URL: https://forge.continuent.org/jira/browse/CAROB-80
Project: Carob
Type: Improvement
Components: C++ API
Versions: Preview - PHP conference
Reporter: Gilles Rayrat
Assigned to: Gilles Rayrat
Priority: Minor
Fix For: V1.0 - full version
Statements, ResultSets, etc. are currently treated with pointers.
As they belong to each other (connection owns statement that own resultset, see
memory text file), we should not return pointers to the user, to prevent
question "do I need to destroy this ?"
The change must be done globally (everywhere is necessary at a time), possibly
starting with a raw Search and Replace in client apps (not recommended)
Memory text file should be updated afterwards
--
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