Giter VIP home page Giter VIP logo

gogurl's People

Contributors

brandly avatar fossabot avatar meangrape avatar mitchellwrosen avatar yanhan avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

brandly fossabot

gogurl's Issues

sqlite-simple doesn't seem to handle PRAGMAs

Adding PRAGMA statements to the db creation SQL causes the tests to fail. The SQL worked manually with cat links.sql | sqlite3 test.db

Setting phasers to stun... (port 16789) (ctrl-c to quit)
SQLite3 returned ErrorError while attempting to perform prepare "INSERT INTO link (name, url) VALUES (:name, :url) ": no such table: link
SQLite3 returned ErrorError while attempting to perform prepare "SELECT url FROM link WHERE name = :name ": no such table: link

@mitchellwrosen You might have some insight, but I'll keep researching myself.

The SQL added to the beginning was:

PRAGMA journal_mode=WAL;
PRAGMA wal_autocheckpoint=100;

500 when writing to a key that exists

Steps to reproduce (using httpie):

$ http <server> name=foo url=bar
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Date: Wed, 14 Mar 2018 15:41:31 GMT
Server: nginx/1.12.1
Strict-Transport-Security: max-age=31536000; includeSubDomains
Transfer-Encoding: chunked

{
    "id": 23,
    "result": "success"
}

Follwed by:

$ http <server> name=foo url=bar
HTTP/1.1 500 Internal Server Error
Connection: keep-alive
Content-Type: text/plain; charset=utf-8
Date: Wed, 14 Mar 2018 15:43:30 GMT
Server: nginx/1.12.1
Strict-Transport-Security: max-age=31536000; includeSubDomains
Transfer-Encoding: chunked

Something went wrong

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.