GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixing the alter operation table options · phpmyadmin/sql-parser@b4a2e3f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/Components
    • AlterOperation.php
  • tests/data/parser
    • parseAlterTableRenameIndex.in
    • parseAlterTableRenameIndex.out
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Components/AlterOperation.php‎

Copy file name to clipboardExpand all lines: src/Components/AlterOperation.php
+8-2Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ class AlterOperation extends Component
116116
'COLUMN' => 2,
117117
'CONSTRAINT' => 2,
118118
'DEFAULT' => 2,
119-
'TO' => 2,
120119
'BY' => 2,
121120
'FOREIGN' => 2,
122121
'FULLTEXT' => 2,
@@ -128,9 +127,16 @@ class AlterOperation extends Component
128127
'PRIMARY KEY' => 2,
129128
'SPATIAL' => 2,
130129
'TABLESPACE' => 2,
131-
'INDEX' => 2,
130+
'INDEX' => [
131+
2,
132+
'var',
133+
],
132134

133135
'CHARACTER SET' => 3,
136+
'TO' => [
137+
3,
138+
'var',
139+
],
134140
];
135141

136142
/**
Collapse file

‎tests/data/parser/parseAlterTableRenameIndex.in‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `transactions` RENAME INDEX `fk_transactions_catalog_entries1_idx` TO `fk_transactions_catalog_entries2_idx`

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.