Giter Club home page Giter Club logo

cs-3380-database-project's Introduction

CS-3380-Database-Project

This is a project for our CS 3380 database class. All files and code will be kept here.

Group members: Chris Dopuch Ben Riemann Breona Butler Corey Jumper Adam Faszl

cs-3380-database-project's People

Contributors

ajfaszl avatar bjrvgd avatar breonabutler avatar cjumper avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

cjumper

cs-3380-database-project's Issues

Insert query for experimenters in eExperiments.php action = add_commit does not correctly increment the primary key

The insert query, for some reason, defaults to inserting the entry with expid = 1 and will increment by 1 each time the query is run. As a result, on a fresh \i database.sql the query will fail 4 times until it gets to expid = 4 as up until that point it is trying to insert an experiment with an expid which is already used (we have 3 experiments by default -- the query successively tries to insert the experiment with expid 1, then 2, then 3, and will succeed with expid = 4 the fourth time it runs), violating the primary key uniqueness constraint. Subsequent runs of the query work fine and increment as expected.

I'm not sure why this is happening -- my guess is that it has something to do with the sql script and not the query as the query looks fine and the problem is not affecting other tables under similar circumstances.

            $query = "INSERT INTO database.experiments (name, payment, requirements) VALUES ($1, $2, $3)";

expid is not specified and should automatically take the next value in the series, but the table and its series appear to be out of sync.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.