Bug 2480 - Use SQLite prepared statements
Use SQLite prepared statements
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: stats
ns-3-dev
All All
: P5 enhancement
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-21 19:14 UTC by Alexander Krotov
Modified: 2016-08-28 11:24 UTC (History)
2 users (show)

See Also:


Attachments
Proposed patch (8.74 KB, patch)
2016-08-21 19:14 UTC, Alexander Krotov
Details | Diff
Proposed patch (8.76 KB, patch)
2016-08-21 19:17 UTC, Alexander Krotov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Krotov 2016-08-21 19:14:34 UTC
Created attachment 2549 [details]
Proposed patch

Using prepared statements allows to use "'" character in experiment names, avoids losing precision for doubles due to conversion to string and should be a bit faster.
Comment 1 Alexander Krotov 2016-08-21 19:17:06 UTC
Created attachment 2550 [details]
Proposed patch

Small fix: replaced -1 with "variable.length ()".
Comment 2 Tom Henderson 2016-08-28 11:24:44 UTC
pushed in changeset 12275:ff7a8974e445