This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Commit 29c5d7f
authored
test: correctly return tx id for update counts (#4045)
The mock Spanner server did not correctly return the transaction ID when
ExecuteStreamingSql was used in combination with an update count result.
Instead of returning the transaction ID of the transaction that was
actually started, it returned the transaction ID that was set on the
request. This would be empty for requests that used a Begin transaction
selector, which again meant that it would return an empty transaction ID.
This change also returns the UPDATE_COUNT field in the result set, which
is also not returned by real Spanner.1 parent 74abb34 commit 29c5d7f
1 file changed
Lines changed: 21 additions & 16 deletions
Lines changed: 21 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1245 | 1245 | | |
1246 | 1246 | | |
1247 | 1247 | | |
1248 | | - | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
1249 | 1255 | | |
1250 | 1256 | | |
1251 | 1257 | | |
| |||
1290 | 1296 | | |
1291 | 1297 | | |
1292 | 1298 | | |
1293 | | - | |
| 1299 | + | |
| 1300 | + | |
1294 | 1301 | | |
1295 | 1302 | | |
1296 | 1303 | | |
| |||
1798 | 1805 | | |
1799 | 1806 | | |
1800 | 1807 | | |
1801 | | - | |
1802 | | - | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
1803 | 1812 | | |
1804 | 1813 | | |
1805 | 1814 | | |
1806 | 1815 | | |
1807 | 1816 | | |
1808 | 1817 | | |
1809 | 1818 | | |
1810 | | - | |
| 1819 | + | |
| 1820 | + | |
1811 | 1821 | | |
1812 | | - | |
1813 | | - | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
1817 | 1822 | | |
1818 | 1823 | | |
1819 | 1824 | | |
1820 | 1825 | | |
1821 | 1826 | | |
1822 | | - | |
| 1827 | + | |
1823 | 1828 | | |
1824 | | - | |
| 1829 | + | |
1825 | 1830 | | |
1826 | | - | |
| 1831 | + | |
1827 | 1832 | | |
1828 | 1833 | | |
1829 | 1834 | | |
| |||
1832 | 1837 | | |
1833 | 1838 | | |
1834 | 1839 | | |
1835 | | - | |
| 1840 | + | |
1836 | 1841 | | |
1837 | | - | |
| 1842 | + | |
1838 | 1843 | | |
1839 | | - | |
| 1844 | + | |
1840 | 1845 | | |
1841 | 1846 | | |
1842 | 1847 | | |
| |||
0 commit comments