mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 16:55:07 +00:00
LibSQL: Allow expressions and column names in SELECT ... FROM
Up to now the only ``SELECT`` statement that worked was ``SELECT * FROM <table>``. This commit allows a column list consisting of column names and expressions in addition to ``*``. ``WHERE`` still doesn't work though.
This commit is contained in:
parent
f33a288ca4
commit
fe50598a03
8 changed files with 90 additions and 20 deletions
|
@ -119,7 +119,10 @@ Value& Tuple::operator[](String const& name)
|
|||
|
||||
void Tuple::append(const Value& value)
|
||||
{
|
||||
VERIFY(m_descriptor->size() == 0);
|
||||
VERIFY(descriptor()->size() >= size());
|
||||
if (descriptor()->size() == size()) {
|
||||
descriptor()->append(value.descriptor());
|
||||
}
|
||||
m_data.append(value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue