ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DecentralizedMedia/MediaFolder.cpp
(Generate patch)

Comparing DecentralizedMedia/MediaFolder.cpp (file contents):
Revision 496 by douglas, 2005-06-17T13:22:26-07:00 vs.
Revision 497 by douglas, 2005-06-17T13:45:37-07:00

# Line 15 | Line 15 | MediaFolder::MediaFolder(_H<dbi::Connect
15  
16   MediaFolder::MediaFolder(_H<dbi::Connection>& connection, const api::Path& path, const api::Path& root) : connection(connection), path(path)
17   {
18 <        _H<dbi::ResultSet> path_(connection->Parse(_B("SELECT path FROM folders WHERE path = ?"))-Execute(path.GetPath()));
18 >        _H<dbi::ResultSet> path_(connection->Parse(_B("SELECT path FROM folders WHERE path = ?"))->Execute(path.GetPath()));
19  
20          if (!path_->MoveNext())
21                  connection->Parse(_B("INSERT INTO folders (path, folder, root) VALUES (?, ?, ?)"))->Execute(path.GetPath(), path.GetParent().GetPath(), root.GetPath());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines