Tagged: syntax error

运行时报错:syntax error near unexpected token `$'\r'' 0

Run .sh or shell script files using WSL in Windows 10

浏览量: 80 1. Enable WSL, refer to: https://www.shuijingwanwq.com/en/2021/12/23/9949/ , execute to step 5 3, the existing test.sh file, the code is as follows 4. Run Windows Terminal as an administrator and execute the command:...

在执行数据库迁移时,报错:SQLSTATE[42000]: Syntax error or access violation: 1059 Identifier name 'theme_installation_version_preset_theme_store_theme_version_id_index' is too long 0

In database migration in Laravel 6, SQLState[42000]: Syntax Error or Access Violation: 1059 Identifier nametheme_installation_version_preset_theme_store_theme_version_id_indexis too long

浏览量: 17 1. When performing database migration, an error is reported: sqlstate[42000]: Syntax Error or Access Violation: 1059 Identifier nametheme_installation_version_preset_theme_store_theme_version_id_indexis too long. as shown in Figure 1 The index length limit of MySQL 5.7...

执行命令:./vendor/bin/phpunit .\Modules\ThemeStore\Tests\Functional\GraphQl\OnlineStoreThemeGraphQlApiTest.php 。报错:Failed asserting that an array has the subset Array 0

When writing the automated test case of Lighthouse 5, when you want to use a variable in the query, the error is reported: syntax error: expected $, and then failed Asserting that an array has the subset array

浏览量: 12 1. Reference URL:https://lighthouse-php.com/4/testing/phpunit.html#setup, test with phpunit . In Lighthouse, it is easy to add automated tests with phpunit. 2. Run the GraphQL Query API and respond 200. The main test field: The...

分析发现,请求参数:filter[and][0][or][1][keyword][fis]=',所生成的 SQL:(FIND_IN_SET(''', `pa_plan`.`keyword`))。 0

sql error: sqlstate[42000]: Syntax error or access Violation: 1064 you have an error in your SQL syntax; check the manual that Corresponds to your MySQL Server version for the right syntax to use near6, find_in_set(, `PA_plan`.`keyword`)

浏览量: 10 1. Interface response to SQL error: SQLSTATE[42000]: Syntax error or access Violation: 1064 you have an error in your SQL syntax; check the manual that Corresponds to your MySQL Server version for...

在 Rancher 中升级容器,报错:/config/init/config0.sh: line 1314: syntax error near unexpected token `}' 0

Upgrade the container in Rancher, error: /config/init/config0.sh: line 1314: syntax error near unexpected token `}analysis solution

浏览量: 10 1. Upgrade the container in Rancher and report an error: /config/init/config0.sh: line 1314: syntax error near unexpected token `}, as shown in Figure 1 2. In phpstorm, edit /config/init/config0.sh, prompt: expected a...