- Notifications
You must be signed in to change notification settings - Fork28
Commit6b045ca
committed
Disallow a digit as the first character of a variable name in pgbench.
The point of this restriction is to avoid trying to substitute variablesinto timestamp literal values, which may contain strings like '12:34'.There is a good deal more that should be done to reduce pgbench'stendency to substitute where it shouldn't. But this is sufficient tosolve the case complained of by Jaime Soler, and it's simple enoughto back-patch.Back-patch to v11; before commit9d36a38, pgbench had a slightlydifferent definition of what a variable name is, and anyway it seemsunwise to change long-stable branches for this.Fabien CoelhoDiscussion:https://postgr.es/m/alpine.DEB.2.22.394.2006291740420.805678@pseudo1 parentc77f311 commit6b045ca
2 files changed
+24
-10
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1008 | 1008 |
| |
1009 | 1009 |
| |
1010 | 1010 |
| |
1011 |
| - | |
| 1011 | + | |
1012 | 1012 |
| |
1013 | 1013 |
| |
1014 | 1014 |
| |
|
Lines changed: 23 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1377 | 1377 |
| |
1378 | 1378 |
| |
1379 | 1379 |
| |
| 1380 | + | |
1380 | 1381 |
| |
1381 | 1382 |
| |
1382 | 1383 |
| |
| |||
1387 | 1388 |
| |
1388 | 1389 |
| |
1389 | 1390 |
| |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
1390 | 1400 |
| |
1391 | 1401 |
| |
1392 | 1402 |
| |
| |||
1507 | 1517 |
| |
1508 | 1518 |
| |
1509 | 1519 |
| |
1510 |
| - | |
| 1520 | + | |
1511 | 1521 |
| |
1512 | 1522 |
| |
1513 | 1523 |
| |
1514 | 1524 |
| |
1515 | 1525 |
| |
1516 |
| - | |
| 1526 | + | |
1517 | 1527 |
| |
1518 | 1528 |
| |
1519 |
| - | |
1520 |
| - | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
1521 | 1540 |
| |
1522 |
| - | |
1523 |
| - | |
1524 |
| - | |
1525 |
| - | |
1526 |
| - | |
1527 | 1541 |
| |
1528 | 1542 |
| |
1529 | 1543 |
| |
|
0 commit comments
Comments
(0)