mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 01:19:38 +01:00
Use StringBuilder in TableBuilder aswell.
This commit is contained in:
parent
e455b53c7b
commit
c2561f4b96
@ -35,10 +35,11 @@
|
||||
#include "query_result.h"
|
||||
|
||||
String TableBuilder::get_result() {
|
||||
return result;
|
||||
return result.as_string();
|
||||
}
|
||||
void TableBuilder::set_result(const String &val) {
|
||||
result = val;
|
||||
result.clear();
|
||||
result.append(val);
|
||||
}
|
||||
|
||||
TableBuilder *TableBuilder::create_table(const String &name) {
|
||||
|
@ -33,6 +33,7 @@
|
||||
/*************************************************************************/
|
||||
|
||||
#include "core/string/ustring.h"
|
||||
#include "core/string/string_builder.h"
|
||||
|
||||
#include "core/object/reference.h"
|
||||
|
||||
@ -115,7 +116,7 @@ protected:
|
||||
Ref<TableBuilder> _foreign_key_bind(const String &name);
|
||||
Ref<TableBuilder> _references_bind(const String &table, const String &name);
|
||||
|
||||
String result;
|
||||
StringBuilder result;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user