Skip to content
This repository was archived by the owner on Nov 22, 2018. It is now read-only.

Evaluate field expression when selecting on dummy tables #173

Merged
merged 1 commit into from
May 11, 2017

Conversation

gernest
Copy link
Collaborator

@gernest gernest commented May 10, 2017

This commit ensures the field expression is evaluated when selecting from nothing.

For instance you can

select 10, now();

This query will return a row of two values, 10 and time.Time.

This functionality is handy when we try to implement the pg_sleep function to slow down queries.

so we can do something like

select 1;select sleep(100);select 2;

This commit ensures the field expression is evaluated when selecting from nothing.

For instance you can

```
select 10, now();
```

This query will return a row of two values, 10 and `time.Time`.

This functionality is handy when we try to implement the pg_sleep function to slow down queries.

so we can do something like

```
select 1;select sleep(100);select 2;
 ```
@cznic cznic self-requested a review May 10, 2017 13:11
Copy link
Owner

@cznic cznic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@gernest gernest merged commit eb22df2 into cznic:master May 11, 2017
@gernest gernest deleted the dummy branch May 11, 2017 09:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants