Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bee api gogps -driver=mysql -conn="..." generate error import file #804

Open
Gnails opened this issue Sep 18, 2021 · 4 comments
Open

bee api gogps -driver=mysql -conn="..." generate error import file #804

Gnails opened this issue Sep 18, 2021 · 4 comments

Comments

@Gnails
Copy link

Gnails commented Sep 18, 2021

image

@Gnails Gnails changed the title bee api gogps -driver=mysql -conn="..." generate error import file bee api gogps -driver=mysql -conn="..." generate error import file Sep 18, 2021
@flycash
Copy link
Collaborator

flycash commented Sep 18, 2021

please provide the database schema (you can delete some columns), mysql version.

@Gnails
Copy link
Author

Gnails commented Sep 18, 2021

please provide the database schema (you can delete some columns), mysql version.

+----------+-----------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+-----------+------+-----+---------+----------------+
| id | int | NO | PRI | NULL | auto_increment |
| username | char(8) | YES | | NULL | |
| passwd | char(225) | YES | | NULL | |
+----------+-----------+------+-----+---------+----------------+

+------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------+----------------+
| seq | int unsigned | NO | PRI | NULL | auto_increment |
| userid | char(11) | YES | | NULL | |
| longtitude | double | YES | | NULL | |
| latitude | double | YES | | NULL | |
+------------+--------------+------+-----+---------+----------------+

mysql Ver 8.0.26 for Linux on x86_64 (MySQL Community Server - GPL)

@flycash
Copy link
Collaborator

flycash commented Sep 18, 2021

It's a historical BUG, bee has some problems with MySQL 8.x. I plan to fix them in next release.

@lghuahua
Copy link

It's a historical BUG, bee has some problems with MySQL 8.x. I plan to fix them in next release.

The package path is calculated incorrectly on windows, and there is no such problem on Linux

// g_appcode.go

func getPackagePath(curpath string) (packpath string) {
    ...
    packpath = strings.Join(strings.Split(curpath[len(appsrcpath)+1:], string(filepath.Separator)), "/")
    return
}

E.g
The project code is in F:\share The packpath obtained by this method is ‘:\share’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants