Hello, Martin.
in postgresql current date can be obtained using CURRENT_DATE. For formating date field please use to_char function.
Good luck!
Search found 164 matches
- 02.12.2009, 09:27
- Forum: PostgreSQL
- Topic: Date processing with PostgreSQL
- Replies: 1
- Views: 658
- 01.10.2009, 07:08
- Forum: 6.6 - stable
- Topic: Handling NULL's in Fields having default values set in DB
- Replies: 15
- Views: 1319
heavy
Yes, heavy. But if the only possible way to do it is this, then so be it. Its always better to do something than not to do
Right now I'm busy at my day work, but in free moment i'll give one more look at the code. You mention FPC - its free pascal I guess. Zeos supports both?
Right now I'm busy at my day work, but in free moment i'll give one more look at the code. You mention FPC - its free pascal I guess. Zeos supports both?
- 30.09.2009, 13:35
- Forum: 6.6 - stable
- Topic: Handling NULL's in Fields having default values set in DB
- Replies: 15
- Views: 1319
- 24.09.2009, 07:59
- Forum: 6.6 - stable
- Topic: Handling NULL's in Fields having default values set in DB
- Replies: 15
- Views: 1319
- 23.09.2009, 15:33
- Forum: 6.6 - stable
- Topic: Handling NULL's in Fields having default values set in DB
- Replies: 15
- Views: 1319
- 23.09.2009, 10:50
- Forum: 6.6 - stable
- Topic: Handling NULL's in Fields having default values set in DB
- Replies: 15
- Views: 1319
- 14.09.2009, 08:45
- Forum: 6.6 - stable
- Topic: Handling NULL's in Fields having default values set in DB
- Replies: 15
- Views: 1319
- 08.09.2009, 08:02
- Forum: 6.6 - stable
- Topic: Handling NULL's in Fields having default values set in DB
- Replies: 15
- Views: 1319
Hello, yes, I have used TZUpdateSQL component in the past, and I'm sure if I use it in my current application it will solve my problem (inserting NULL instead of default). I haven't looked at the output from a TZSQLMonitor, but I traced down to the place the SQL statement is formed in Zeos code - it...
- 04.09.2009, 14:00
- Forum: 6.6 - stable
- Topic: Handling NULL's in Fields having default values set in DB
- Replies: 15
- Views: 1319
Handling NULL's in Fields having default values set in DB
I'm using zeos 6.6.5-stable with delphi 2006 to connect to postgresql (8.3.3). Theres a problem I'd like to discuss - how to insert a record with a null value if corresponding database column has default value? Thats wat I have: 1. In DB CREATE TABLE test ( id serial NOT NULL, "value" inte...
- 04.07.2008, 16:02
- Forum: PostgreSQL
- Topic: Editing Interval data type
- Replies: 0
- Views: 464
Editing Interval data type
Hello,
Interval type in Postgresql is interpreted as string in Delphi (ftString). Anyway - editing it is a nightmare for a not English speaking person. Is there a component that could ease this?
Interval type in Postgresql is interpreted as string in Delphi (ftString). Anyway - editing it is a nightmare for a not English speaking person. Is there a component that could ease this?
- 28.03.2008, 10:07
- Forum: PostgreSQL
- Topic: Zeos in TService
- Replies: 7
- Views: 1535
- 28.03.2008, 09:40
- Forum: PostgreSQL
- Topic: Zeos in TService
- Replies: 7
- Views: 1535
- 28.03.2008, 09:34
- Forum: PostgreSQL
- Topic: Zeos in TService
- Replies: 7
- Views: 1535
- 28.03.2008, 08:41
- Forum: PostgreSQL
- Topic: Zeos in TService
- Replies: 7
- Views: 1535
Zeos in TService
Hello, I'm trying to make SERVICE that does some work to DB. The problem is that I get "Requested database driver was not found" then I try to do Connected := true. I copyed the needed dll's to the project folder and to the windows\system32 but still no connection. What to do? I even tried...