can not create database!!!! - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject can not create database!!!!
Date
Msg-id 200106150251.f5F2pEn65331@hub.org
Whole thread Raw
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: "Mister ics"
Date:
Subject: Re: ODBC Interface version 07_01_0005, problem with C++ exceptions
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: sqlca.sqlcode doesn't work in 7.xx