OSDN Git Service

[core] : 明らかな型の不一致を修正。
authorcaprice <caprice@users.sourceforge.jp>
Sun, 23 Jun 2013 15:54:46 +0000 (00:54 +0900)
committercaprice <caprice@users.sourceforge.jp>
Sun, 23 Jun 2013 15:54:46 +0000 (00:54 +0900)
core/include/query.hpp

index b72fb07..441e12f 100644 (file)
@@ -21,7 +21,7 @@ public:
     // query order
     class select_ final {
         friend class query;
-        select_() {}
+        select_(const query& q) {}
         ~select_() {}
     public:
         struct select_all_column {} all_columnes;
@@ -39,13 +39,13 @@ public:
     ~query() = default;
     
     query& define() { return (*this); }
-    select_& select(const column_name_list& columnes,
+    select_ select(const column_name_list& columnes,
                     const mona_string& from) {
-        return (*this);
+        return select_(*this);
     }
-    select_& select(typename select_::select_all_column dummy,
+    select_ select(typename select_::select_all_column dummy,
                     const mona_string& from) {
-        return (*this);
+        return select_(*this);
     }
     query& insert(const mona_string& into) {}
 };