Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: 1.1.4, 1.1.5
-
Fix Version/s: None
-
Component/s: Schema Files
-
Labels:None
-
Environment:Linux, Oracle 10g
Description
Doctrine generates invalid sql statements when using default values for several column types - the reult is an empty default value wich cause error when trying to create the db schema.
The following modification was used as a workaround (maybe it's not the best way for other databases):
doctrine formater.php (line 191).
case 'date':
case 'time':
case 'timestamp':
case 'string':
case 'char':
case 'varchar':
case 'text':
case 'gzip':
case 'blob':
case 'clob':
case 'enum':
case 'boolean':
// remove this line: $this->conn->connect();
// remove this line: return $this->conn->getDbh()->quote
($input);
// add the line below
return "'" . str_replace("'","''",$input) . "'";
Activity
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Invalid [ 6 ] |
| Resolution | Invalid [ 6 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Resolution | Invalid [ 6 ] |
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DC-258, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
I don't understand the issue or your proposed fix. Re-open if you have more information and a potential patch to fix the issue.