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

Commit 64da32e

Browse files
committed
Repair illegal table name.
1 parent b9f688d commit 64da32e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Ray.Storage.SQLCore/Configuration/StorageOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public async ValueTask<EventSubTable> GetTable(long eventTimestamp)
105105
subTable = new EventSubTable
106106
{
107107
TableName = EventTable,
108-
SubTable = $"{EventTable}_{index}",
108+
SubTable = index < 0 ? $"{EventTable}_n_{index * -1}" : $"{EventTable}_{index}",
109109
Index = index,
110110
StartTime = firstSubTable.StartTime - SubTableMillionSecondsInterval,
111111
EndTime = firstSubTable.StartTime

0 commit comments

Comments
 (0)