Re: Is there a way to change current time?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

čt 15. 4. 2021 v 15:45 odesílatel Warstone@xxxxxxx <warstone@xxxxxxx> napsal:
Hi,
 
Is there any way to set time that CURRENT_TIMESTAMP and/or now() will give next time? (We need it only for testing purposes so if there is any hack, cheat, etc. It will be fine)

This is a bad way - don't use now() in queries - use a variable instead. Later you can use now as an argument or some constant value.

Regards

Pavel
 
 
 
 
 

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux