mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 11:56:49 +01:00
Hide result String in TableBuilder. Also add clear() method to it.
This commit is contained in:
parent
e845f2f905
commit
e455b53c7b
@ -132,6 +132,10 @@ Ref<QueryResult> TableBuilder::run() {
|
||||
void TableBuilder::run_query() {
|
||||
}
|
||||
|
||||
void TableBuilder::clear() {
|
||||
result.clear();
|
||||
}
|
||||
|
||||
void TableBuilder::print() {
|
||||
//printf("%s\n", result.get_data());
|
||||
print_error(result);
|
||||
|
@ -77,13 +77,13 @@ public:
|
||||
virtual Ref<QueryResult> run();
|
||||
virtual void run_query();
|
||||
|
||||
void clear();
|
||||
|
||||
void print();
|
||||
|
||||
TableBuilder();
|
||||
virtual ~TableBuilder();
|
||||
|
||||
String result;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
@ -114,6 +114,8 @@ protected:
|
||||
|
||||
Ref<TableBuilder> _foreign_key_bind(const String &name);
|
||||
Ref<TableBuilder> _references_bind(const String &table, const String &name);
|
||||
|
||||
String result;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -251,7 +251,7 @@ void HTTPSessionManagerDB::_create_table() {
|
||||
// tb->print();
|
||||
tb->run_query();
|
||||
|
||||
tb->result = "";
|
||||
tb->clear();
|
||||
|
||||
tb->create_table(_database_data_table_name);
|
||||
tb->integer("session_db_id")->not_null()->next_row();
|
||||
|
Loading…
Reference in New Issue
Block a user