Git Product home page Git Product logo

pg-device_type's Introduction

TEST

device_type

A device_type extension for postgres

The pg-device_typey extension create new data types device_type, which is a enum types.

Here are the different possible types/

  • Bot
  • Console
  • Ipod
  • Mac
  • Pc
  • Phone
  • Server
  • Simulator
  • Tablet
  • Tv
  • Unknow

The extension also creates comparison operators and operator classes for btree and hash indexes.

pg-device_type's People

Contributors

andreasscherbaum avatar einhverfr avatar perikadjust avatar rapimo avatar zilder avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

pg-device_type's Issues

Travis CI tests are failing

The Travis CI tests are failing, all other GitHub Action tests are working.
The error message (missing control file) doesn't seem to be build related, but rather points to an unrelated problem.

Suggestion: remove the Travis CI tests entirely.

Inefficient switch for unexpected input

Switch cases in device_type_from_str() are missing break statement at the end which makes switch to run through every case given there is an unexpected input:

	switch (str[0])
	{
		case 'b': if (strcmp(str, "bot") == 0) return BOT;
		case 'c': if (strcmp(str, "console") == 0) return CONSOLE;
		case 'i': if (strcmp(str, "ipod") == 0) return IPOD;
                /* skipped */
	}

For instance, if input is bar then it would start with case 'b' and then would keep falling through. It is probably not a big deal when unexpected values are rare but still would be nice to fix.

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.