GoogleCloudPlatform / GoogleCloudPlatform/cloud-spanner-emulator

Using pending_commit_timestamp() in an IF expression yields a weird result

Open
#181 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
334
Forks
77
Avg merge
8m
Merged PRs (30d)
2

Description

```
insert into numbers (num, name, created_at) values (2, 'Two', if(true, pending_commit_timestamp(), null));
select *
from numbers;

2,Two,0001-01-03 00:00:00
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.