i always see nothing in logs. :-/
1. Check your logs, perhaps the error message in one of them. You might
also try removing your <esql:error-results> element; perhaps it is masking
an exception that you'd otherwise see.
2. Make sure your pool, xsp, and esql setup is correct; can you do a simplethe select work ; so the pool is correct.
SELECT query successfully in place of the INSERT?
3. You say the query works by hand; are you logging in using the sameyes i use the same user.
account as your pool user? Otherwise you might have a permissions problem.
4. Is the code below copied from your source? There is a missing lefti made a mistake the copy/paste.
parenthesis on your column list.
5. Is TODAY() a function? You appear to be trying to insert the StringToday() is a postgresql function.
'TODAY()' into a date field. Just use bare TODAY() as you would in your
SQL statement.i even tested to execute this query ; but nothing went well.
-Christopher
<esql:query>
INSERT INTO blog_news (id_blog_user,news_title,news_text,news_image,news_date_creation,news_date_modify)
VALUES (2,'foo,'bar','','TODAY()',NULL);
</esql:query>
By hand ; on psql server:
mblog=# INSERT INTO blog_news (id_blog_user,news_title,news_text,news_image,news_date_creation,news_date_modify) VALUES (2,'foo','bar','','TODAY()',NULL);
INSERT 17466 1
mblog=# select * from blog_news order by id_blog_news desc limit 1;
id_blog_news | id_blog_user | news_title | news_text | news_image | news_date_creation | news_date_modify
--------------+--------------+------------+-----------+------------+--------------------+------------------
9 | 2 | foo | bar | | 2004-03-31 |
(1 ligne)
i will check again the ESQL syntax its impossible that this syntax works like that ...
regards.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
