Comments (1)
The reason it didnt work is because apparently the table was renamed, but the constraint was not renamed. This is obviously a major flaw with the application which must be changed in the original template repository
The issue was with the get_primary_key function in core. i had to adjust the query to get the primary key according to the answer on this stack overflow post
I had to adjust the query to this
SELECT
c.column_name,
c.data_type
FROM information_schema.table_constraints tc
JOIN information_schema.constraint_column_usage AS ccu USING (constraint_schema, constraint_name)
JOIN information_schema.columns AS c ON c.table_schema = tc.constraint_schema
AND tc.table_name = c.table_name AND ccu.column_name = c.column_name
WHERE constraint_type = 'PRIMARY KEY' and tc.table_name = '{tablename}';
from bight23checker.
Related Issues (13)
- Loading section of the checker is failing to handle qc sample stationid 0000 HOT 1
- Toxicity batch - check for duplicate toxbatch
- errors/warnings tab not updated when new file that fails match tables is dropped HOT 1
- Toxicity summary mussel control acceptability criteria (mean control value) - Incorrect species name and value
- emails for critical errors sending to spam folder HOT 1
- Mismatch function fails when column datatypes differ HOT 4
- columns are sometimes of incorrect datatype - not what we would expect as the code is running HOT 1
- App crashes if 2 out of 3 tables match a dataset HOT 1
- station occupation distance check broken HOT 2
- Field, Trawl, Grab Logic checks are broken HOT 1
- Duplicate check didnt work HOT 1
- Column inf does not exist HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bight23checker.