use pt::Stream instead of pt::TextStream as the output stream
This commit is contained in:
17
src/cursor.h
17
src/cursor.h
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2018-2023, Tomasz Sowa
|
||||
* Copyright (c) 2018-2024, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -37,6 +37,10 @@
|
||||
|
||||
#include "queryresult.h"
|
||||
#include "modelconnector.h"
|
||||
#include "modeldata.h"
|
||||
#include "select.h"
|
||||
#include "modelenv.h"
|
||||
#include "dbexpression.h"
|
||||
|
||||
|
||||
namespace morm
|
||||
@@ -330,9 +334,10 @@ public:
|
||||
}
|
||||
|
||||
|
||||
virtual void set_cursor_name(pt::TextStream & cursor_name)
|
||||
virtual void set_cursor_name(pt::Stream & cursor_name)
|
||||
{
|
||||
this->cursor_name = cursor_name;
|
||||
this->cursor_name.clear();
|
||||
this->cursor_name << cursor_name;
|
||||
}
|
||||
|
||||
|
||||
@@ -477,9 +482,9 @@ protected:
|
||||
pt::TextStream cursor_name;
|
||||
bool scroll_cursor;
|
||||
|
||||
typedef void (DbExpression::*prepare_fetch_method_type)(const pt::TextStream & cursor_name, pt::TextStream & out_stream);
|
||||
typedef void (DbExpression::*prepare_fetch_long_count_method_type)(const pt::TextStream & cursor_name, long count, pt::TextStream & out_stream);
|
||||
typedef void (DbExpression::*prepare_fetch_size_count_method_type)(const pt::TextStream & cursor_name, size_t count, pt::TextStream & out_stream);
|
||||
typedef void (DbExpression::*prepare_fetch_method_type)(const pt::Stream & cursor_name, pt::Stream & out_stream);
|
||||
typedef void (DbExpression::*prepare_fetch_long_count_method_type)(const pt::Stream & cursor_name, long count, pt::Stream & out_stream);
|
||||
typedef void (DbExpression::*prepare_fetch_size_count_method_type)(const pt::Stream & cursor_name, size_t count, pt::Stream & out_stream);
|
||||
|
||||
|
||||
DbExpression * get_db_expression()
|
||||
|
Reference in New Issue
Block a user