Thread: can not create database!!!!

can not create database!!!!

From
pgsql-bugs@postgresql.org
Date:
scott cao (scottc@cs.ucla.edu) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
can not create database!!!!

Long Description
Can not create database!!!!
I don't have an explicit transaction block in progress.
ERROR: CREATE DATABASE: may not be called in a transaction block
This code work with 6.XX but does't work with 7.xx


Sample Code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
  exec sql connect to template1 user postgres;
  exec sql create database test1234;
  exec sql commit;
}


No file was uploaded with this report