Git Product home page Git Product logo

Comments (9)

Ambal avatar Ambal commented on September 15, 2024

oh, so someone is still using postgre?.. yes, please, provide a fix for postgre if you can

from mangos-one-server-old.

VladimirMangos avatar VladimirMangos commented on September 15, 2024

Strange, it used long time in master version directly in code and none one report porblems when some other porblems has been reported about posgre use.

from mangos-one-server-old.

VladimirMangos avatar VladimirMangos commented on September 15, 2024

"If it's a good fix I can make patch for all queries"

No-no, this is not right way...

We have some other syntax diff in queries for mysql/posgre and have special defines for provide alternative syntax. If you confirm that this work right i can add like define for in all places use instead direct UNIX_TIMESTAMP
But we also use FROM_UNIXTIME(time). Is it ok case?

from mangos-one-server-old.

m4tm4t avatar m4tm4t commented on September 15, 2024

found http://janusz.slota.name/blog/2009/06/mysql-from_unixtime-and-unix_timestamp-functions-in-postgresql/

Tested as postgres function and work then what the best, postgres functions or core modification?

from mangos-one-server-old.

VladimirMangos avatar VladimirMangos commented on September 15, 2024

Hmm, intresting sollution, if function psosible then maybe better have its.
As i understand then need do add its query in posrgre database connection init?
it need do for each connection or single time. in any case this need do then in PostgreSQLConnection::Initialize possible. Can you test this way? And maybe provide patch if work....

from mangos-one-server-old.

m4tm4t avatar m4tm4t commented on September 15, 2024

Function replacement need to be added one time at each database using FROM_UNIXTIME and UNIX_TIMESTAMP
http://www.picdo.net/fichiers/2011/2/12/05ca3557-7ecb-4e0d-b24d-e9a14261671b_pgfunctions.tiff

from mangos-one-server-old.

VladimirMangos avatar VladimirMangos commented on September 15, 2024

Fixed in [11155] in suggested way. Please look is i ok write because can't do real test in PostgreSQL.

from mangos-one-server-old.

m4tm4t avatar m4tm4t commented on September 15, 2024

it works but you have forget the function FROM_UNIXTIME
https://gist.github.com/824546

from mangos-one-server-old.

VladimirMangos avatar VladimirMangos commented on September 15, 2024

Oh, thank you :) Fixed in [11160]

from mangos-one-server-old.

Related Issues (20)

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.