SQL Errors
See original GitHub issueI am getting a lot of these issues for a certain image. It seems to hang the indexing as a result, by constantly retrying the image.
as you can see there is something weird with the altitude on that photo.
pigallery | name: 'QueryFailedError',
pigallery | query:
pigallery | 'INSERT INTO `media_entity`(`id`, `name`, `type`, `directoryId`, `metadataCaption`, `metadataCreationdate`, `metadataFilesize`, `metadataKeywords`, `metadataOrientation`, `metadataBitrate`, `metadataDuration`, `metadataSizeWidth`, `metadataSizeHeight`, `metadataCameraDataIso`, `metadataCameraDataModel`, `metadataCameraDataMake`, `metadataCameraDataFstop`, `metadataCameraDataExposure`, `metadataCameraDataFocallength`, `metadataCameraDataLens`, `metadataPositionDataCountry`, `metadataPositionDataState`, `metadataPositionDataCity`, `metadataPositionDataGPSDataLatitude`, `metadataPositionDataGPSDataLongitude`, `metadataPositionDataGPSDataAltitude`) VALUES (DEFAULT, ?, ?, ?, DEFAULT, ?, ?, DEFAULT, ?, DEFAULT, DEFAULT, ?, ?, ?, ?, ?, ?, ?, ?, DEFAULT, DEFAULT, DEFAULT, DEFAULT, ?, ?, ?)',
pigallery | parameters:
pigallery | [ 'IMG_20160307_115115.jpg',
pigallery | 'PhotoEntity',
pigallery | 20,
pigallery | 1457351475000,
pigallery | 2459130,
pigallery | 1,
pigallery | 3120,
pigallery | 4160,
pigallery | 112,
pigallery | 'Redmi Note 2',
pigallery | 'Xiaomi',
pigallery | 2.2,
pigallery | 0.000481,
pigallery | 3.5,
pigallery | -32.58647536111111,
pigallery | 115.74507138888889,
pigallery | 4294967291 ] }
pigallery | { QueryFailedError: ER_WARN_DATA_OUT_OF_RANGE: Out of range value for column 'metadataPositionDataGPSDataAltitude' at row 1
pigallery | at new QueryFailedError (/pigallery2-release/node_modules/typeorm/error/QueryFailedError.js:11:28)
pigallery | at Query.<anonymous> (/pigallery2-release/node_modules/typeorm/driver/mysql/MysqlQueryRunner.js:167:45)
pigallery | at Query.<anonymous> (/pigallery2-release/node_modules/mysql/lib/Connection.js:502:10)
pigallery | at Query._callback (/pigallery2-release/node_modules/mysql/lib/Connection.js:468:16)
pigallery | at Query.Sequence.end (/pigallery2-release/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
pigallery | at Query.ErrorPacket (/pigallery2-release/node_modules/mysql/lib/protocol/sequences/Query.js:90:8)
pigallery | at Protocol._parsePacket (/pigallery2-release/node_modules/mysql/lib/protocol/Protocol.js:278:23)
pigallery | at Parser.write (/pigallery2-release/node_modules/mysql/lib/protocol/Parser.js:76:12)
pigallery | at Protocol.write (/pigallery2-release/node_modules/mysql/lib/protocol/Protocol.js:38:16)
pigallery | at Socket.<anonymous> (/pigallery2-release/node_modules/mysql/lib/Connection.js:91:28)
pigallery | message:
pigallery | 'ER_WARN_DATA_OUT_OF_RANGE: Out of range value for column \'metadataPositionDataGPSDataAltitude\' at row 1',
pigallery | code: 'ER_WARN_DATA_OUT_OF_RANGE',
pigallery | errno: 1264,
pigallery | sqlMessage:
pigallery | 'Out of range value for column \'metadataPositionDataGPSDataAltitude\' at row 1',
pigallery | sqlState: '22003',
pigallery | index: 0,
pigallery | sql:
pigallery | 'INSERT INTO `media_entity`(`id`, `name`, `type`, `directoryId`, `metadataCaption`, `metadataCreationdate`, `metadataFilesize`, `metadataKeywords`, `metadataOrientation`, `metadataBitrate`, `metadataDuration`, `metadataSizeWidth`, `metadataSizeHeight`, `metadataCameraDataIso`, `metadataCameraDataModel`, `metadataCameraDataMake`, `metadataCameraDataFstop`, `metadataCameraDataExposure`, `metadataCameraDataFocallength`, `metadataCameraDataLens`, `metadataPositionDataCountry`, `metadataPositionDataState`, `metadataPositionDataCity`, `metadataPositionDataGPSDataLatitude`, `metadataPositionDataGPSDataLongitude`, `metadataPositionDataGPSDataAltitude`) VALUES (DEFAULT, \'IMG_20160307_115115.jpg\', \'PhotoEntity\', 20, DEFAULT, 1457351475000, 2459130, DEFAULT, 1, DEFAULT, DEFAULT, 3120, 4160, 112, \'Redmi Note 2\', \'Xiaomi\', 2.2, 0.000481, 3.5, DEFAULT, DEFAULT, DEFAULT, DEFAULT, -32.58647536111111, 115.74507138888889, 4294967291)',
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Db2 11 - SQL error codes - IBM
SQL error codes for Java programs: For information on SQL error codes in the range -4200 to -4299 and -4450 to -4499, see...
Read more >Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >Common SQL syntax errors and how to resolve them
In this article, we are going to describe some of the most common SQL syntax errors, and explains how you can resolve these...
Read more >Debugging SQL syntax errors - Metabase
SQL error messages are displayed for each line in your query that fails to run. You'll need to follow the steps above for...
Read more >6 Common Mistakes for SQL Queries that "Should be Working"
6 Common Mistakes for SQL Queries that "Should be Working" · 1. Using NOT IN with NULL values · 2. Incorrect order when...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i have not had any errors with it since the update, you can close it.
Can you confirm that this still exists?