-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nick
committed
Oct 31, 2024
1 parent
4986d9e
commit 6eb315b
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,7 +120,7 @@ public function testParseOk(): void { | |
$query = 'INSERT INTO test(col1,col2,col3,col4,col5,col6,col7,col8,@timestamp) VALUES' | ||
. "('[email protected]', 1, 111, '{\"b\":2}', (1,2), (1,11111111111), (0.2,0.8), 'c', '2000-01-01T12:00:00Z')," | ||
. "('[email protected]', 2, 222222222222, '{\"a\": \"(2,3)\"}', (2,3,4,5), (222222222222)," | ||
. " 'qqq', '2000-01-01T12:00:30Z')"; | ||
. " (0.8,0.2), 'qqq', '2000-01-01T12:00:30Z')"; | ||
$res = [ | ||
'name' => 'test', | ||
'cols' => ['col1', 'col2', 'col3', 'col4', 'col5', 'col6', 'col7', 'col8', '@timestamp'], | ||
|
@@ -142,9 +142,9 @@ public function testParseOk(): void { | |
$parser = new SQLInsertParser(); | ||
$query = 'INSERT INTO test(col1,col2,col3,col4,col5,col6,col7,col8) VALUES' | ||
. "\n" | ||
. "('[email protected]', 1, 111111111111, '{\"b\":2}', (1,2), (1,111), (0.5,0.5), 'c')," | ||
. "('[email protected]', 1, 111111111111, '{\"b\":2}', (1,2), (1,111), (1,2), 'c')," | ||
. "\n" | ||
. "('some text', 2, 222, '{\"a\": \"(2,3)\"}', (2,3,4,5), (222), (1,2), 'qqq')"; | ||
. "('some text', 2, 222, '{\"a\": \"(2,3)\"}', (2,3,4,5), (222), (0.5,1), 'qqq')"; | ||
$res = [ | ||
'name' => 'test', | ||
'cols' => ['col1', 'col2', 'col3', 'col4', 'col5', 'col6', 'col7', 'col8'], | ||
|