44
55use Closure ;
66use Exception ;
7+ use PDO ;
8+ use Illuminate \Database \Connection as IlluminateConnection ;
79use Doctrine \DBAL \Driver \PDOSqlsrv \Driver as DoctrineDriver ;
8- use Illuminate \ Database \Query \Processors \ SqlServerProcessor ;
10+ use Uepg \ LaravelSybase \ Database \Query \Builder ;
911use Uepg \LaravelSybase \Database \Query \Grammar as QueryGrammar ;
12+ use Uepg \LaravelSybase \Database \Query \Processor ;
1013use Uepg \LaravelSybase \Database \Schema \Blueprint ;
1114use Uepg \LaravelSybase \Database \Schema \Grammar as SchemaGrammar ;
12- use Illuminate \Database \Connection as IlluminateConnection ;
13- use Illuminate \Database \Query \Builder ;
1415
1516class Connection extends IlluminateConnection
1617{
@@ -71,7 +72,7 @@ public function transaction(Closure $callback, $attempts = 1)
7172 /**
7273 * Get the default query grammar instance.
7374 *
74- * @return \Illuminate\ Database\Query\Grammars\SqlServerGrammar
75+ * @return \Uepg\LaravelSybase\ Database\Query\Grammar
7576 */
7677 protected function getDefaultQueryGrammar ()
7778 {
@@ -81,7 +82,7 @@ protected function getDefaultQueryGrammar()
8182 /**
8283 * Get the default schema grammar instance.
8384 *
84- * @return \Illuminate\ Database\Schema\Grammars\SqlServerGrammar
85+ * @return \Uepg\LaravelSybase\ Database\Schema\Grammar
8586 */
8687 protected function getDefaultSchemaGrammar ()
8788 {
@@ -91,11 +92,11 @@ protected function getDefaultSchemaGrammar()
9192 /**
9293 * Get the default post processor instance.
9394 *
94- * @return \Illuminate\ Database\Query\Processors\SqlServerProcessor
95+ * @return \Uepg\LaravelSybase\ Database\Query\Processor
9596 */
9697 protected function getDefaultPostProcessor ()
9798 {
98- return new SqlServerProcessor ;
99+ return new Processor ;
99100 }
100101
101102 /**
@@ -130,7 +131,7 @@ private function compileForSelect(Builder $builder, $bindings) {
130131 }
131132 $ queryString = $ this ->queryStringForSelect ($ tables );
132133 $ queryRes = $ this ->getPdo ()->query ($ queryString );
133- $ types [$ tables ] = $ queryRes ->fetchAll (\ PDO ::FETCH_NAMED );
134+ $ types [$ tables ] = $ queryRes ->fetchAll (PDO ::FETCH_NAMED );
134135
135136 foreach ($ types [$ tables ] as &$ row ) {
136137 $ tipos [strtolower ($ row ['name ' ])] = $ row ['type ' ];
@@ -369,7 +370,7 @@ private function compileBindings($query, $bindings)
369370 $ queryRes = $ this ->getPdo ()->query (
370371 $ this ->queryStringForCompileBindings ($ table )
371372 );
372- $ types [$ table ] = $ queryRes ->fetchAll (\ PDO ::FETCH_ASSOC );
373+ $ types [$ table ] = $ queryRes ->fetchAll (PDO ::FETCH_ASSOC );
373374 for ($ k = 0 ; $ k < count ($ types [$ table ]); $ k ++) {
374375 $ types [$ table ][
375376 $ types [$ table ][$ k ]['name ' ]
@@ -711,14 +712,14 @@ public function getFetchMode()
711712 }
712713
713714 /**
714- * @return \Illuminate\ Database\Schema \Builder
715+ * @return \Uepg\LaravelSybase\ Database\Query \Builder
715716 */
716717 public function getSchemaBuilder ()
717718 {
718719 if (is_null ($ this ->schemaGrammar )) {
719720 $ this ->useDefaultSchemaGrammar ();
720721 }
721- $ builder = new \ Illuminate \ Database \ Schema \ Builder ($ this );
722+ $ builder = new Builder ($ this );
722723 $ builder ->blueprintResolver (function ($ table , $ callback ) {
723724 return new Blueprint ($ table , $ callback );
724725 });
0 commit comments