I'm updating programmatically posts in a WP 3.01 install, using custom made tools.
Sometimes I do change programmatically
post_status from DRAFT to PUBLISHED using custom
SELECT queries, however this seems spoiling posts permalinks.
When in a DRAFT state, posts have the following link structure
Could there be some "trick" to force a change in the link structure, generating the proper permalink?